From patchwork Sun Aug 31 18:44:22 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Doug Evans X-Patchwork-Id: 2604 Received: (qmail 12433 invoked by alias); 31 Aug 2014 18:45:10 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 12396 invoked by uid 89); 31 Aug 2014 18:45:08 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL, BAYES_00, FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-pa0-f50.google.com Received: from mail-pa0-f50.google.com (HELO mail-pa0-f50.google.com) (209.85.220.50) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Sun, 31 Aug 2014 18:45:06 +0000 Received: by mail-pa0-f50.google.com with SMTP id kq14so10515954pab.9 for ; Sun, 31 Aug 2014 11:45:05 -0700 (PDT) X-Received: by 10.68.233.68 with SMTP id tu4mr33535693pbc.65.1409510702810; Sun, 31 Aug 2014 11:45:02 -0700 (PDT) Received: from seba.sebabeach.org.gmail.com (173-13-178-50-sfba.hfc.comcastbusiness.net. [173.13.178.50]) by mx.google.com with ESMTPSA id tx8sm20327197pac.42.2014.08.31.11.45.01 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 31 Aug 2014 11:45:02 -0700 (PDT) From: Doug Evans To: gdb-patches@sourceware.org Subject: [PATCH] Add some debugging printfs to linux-nat.c Date: Sun, 31 Aug 2014 11:44:22 -0700 Message-ID: MIME-Version: 1.0 X-IsSubscribed: yes Hi. I found these useful when debugging 17247,17314. 2014-08-31 Doug Evans * linux-nat.c (wait_lwp): Add debugging printf. (linux_nat_wait_1): Ditto. diff --git a/gdb/linux-nat.c b/gdb/linux-nat.c index 0898442..557c84b 100644 --- a/gdb/linux-nat.c +++ b/gdb/linux-nat.c @@ -2311,6 +2311,8 @@ wait_lwp (struct lwp_info *lp) again before it gets to sigsuspend so we can safely let the handlers get executed here. */ + if (debug_linux_nat) + fprintf_unfiltered (gdb_stdlog, "WL: about to sigsuspend\n"); sigsuspend (&suspend_mask); } @@ -3441,6 +3443,8 @@ retry: gdb_assert (lp == NULL); /* Block until we get an event reported with SIGCHLD. */ + if (debug_linux_nat) + fprintf_unfiltered (gdb_stdlog, "LNW: about to sigsuspend\n"); sigsuspend (&suspend_mask); }