From: Eli Zaretskii <eliz@gnu.org>
To: gdb-patches@sourceware.org,Philippe Waroquiers
<philippe.waroquiers@skynet.be>
Subject: Re: [RFA] Give thread names in thread events, give Ada task names in more output.
Date: Sun, 19 May 2019 13:32:00 -0000 [thread overview]
Message-ID: <3E682804-A278-454D-B2BC-6AD08C24F88D@gnu.org> (raw)
In-Reply-To: <1558269697.1454.11.camel@skynet.be>
On May 19, 2019 1:41:37 PM GMT+01:00, Philippe Waroquiers <philippe.waroquiers@skynet.be> wrote:
> On Sat, 2019-05-18 at 22:03 +0300, Eli Zaretskii wrote:
> > > From: Philippe Waroquiers <philippe.waroquiers@skynet.be>
> > > Cc: Philippe Waroquiers <philippe.waroquiers@skynet.be>
> > > Date: Sat, 18 May 2019 20:23:06 +0200
> > >
> > > With this patch, we e.g. get:
> > > [New Thread 0x7ffff701b700 (LWP 13891) "sleepers"]
> > > [Switching to thread 2 (Thread 0x7ffff781c700 (LWP 13890)
> "sleepers")]
> > > instead of:
> > > [New Thread 0x7ffff701b700 (LWP 13918)]
> > > [Switching to thread 2 (Thread 0x7ffff781c700 (LWP 13917))]
> > >
> > > For Ada tasks, we e.g. get:
> > > [Switching to task 2 task_list(1)]
> > > [Current task is 2 task_list(1)]
> > > instead of
> > > [Switching to task 2]
> > > [Current task is 2]
> >
> > Except for Ada, the names are only available on some platforms,
> right?
> > Should we mention that in the manual?
> The manual currently describes the thread name and the way GDB
> shows the 'system thread name' only some systems in the command
> 'thread name' in the node 'Debugging Programs with Multiple Threads'.
>
> What about the below addition ?
>
> diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo
> index 9de56061d9..8361d68cef 100644
> --- a/gdb/doc/gdb.texinfo
> +++ b/gdb/doc/gdb.texinfo
> @@ -3284,6 +3284,9 @@ disable printing of messages when @value{GDBN}
> notices that new threads have
> started or that threads have exited. By default, these messages will
> be printed if detection of these events is supported by the target.
> Note that these messages cannot be disabled on all targets.
> +The thread event message contains the thread name if @value{GDBN} can
> determine
> +its value by retrieving it from the OS or by using the thread name
> given by
> +the user (see @code{thread name}, above).
>
> @kindex show print thread-events
> @item show print thread-events
Fine wirh me, thanks.
next prev parent reply other threads:[~2019-05-19 13:32 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-05-18 18:23 Philippe Waroquiers
2019-05-18 19:03 ` Eli Zaretskii
2019-05-19 12:41 ` Philippe Waroquiers
2019-05-19 13:32 ` Eli Zaretskii [this message]
2019-06-03 20:02 ` Tom Tromey
2019-06-04 21:40 ` Philippe Waroquiers
2019-06-05 13:28 ` Tom Tromey
2019-06-05 9:02 ` Pedro Alves
2019-06-05 22:24 ` Philippe Waroquiers
2019-06-08 15:45 ` Philippe Waroquiers
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=3E682804-A278-454D-B2BC-6AD08C24F88D@gnu.org \
--to=eliz@gnu.org \
--cc=gdb-patches@sourceware.org \
--cc=philippe.waroquiers@skynet.be \
/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