From: Gary Benson <gbenson@redhat.com>
To: gdb-patches@sourceware.org
Subject: Re: [PATCH] Add some debugging printfs to linux-nat.c
Date: Mon, 01 Sep 2014 09:09:00 -0000 [thread overview]
Message-ID: <20140901090312.GA9521@blade.nx> (raw)
In-Reply-To: <m34mwsv6rd.fsf@sspiff.org>
Hi Doug,
Doug Evans wrote:
> I found these useful when debugging 17247,17314.
>
> 2014-08-31 Doug Evans <xdje42@gmail.com>
>
> * 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);
> }
Please use debug_printf.
Thanks,
Gary
--
http://gbenson.net/
next prev parent reply other threads:[~2014-09-01 9:09 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-31 18:45 Doug Evans
2014-09-01 9:09 ` Gary Benson [this message]
2014-09-01 17:00 ` Doug Evans
2014-09-13 23:04 ` Doug Evans
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20140901090312.GA9521@blade.nx \
--to=gbenson@redhat.com \
--cc=gdb-patches@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox