From: Philippe Waroquiers <philippe.waroquiers@skynet.be>
To: Eli Zaretskii <eliz@gnu.org>
Cc: gdb-patches@sourceware.org
Subject: Re: [RFA] Give thread names in thread events, give Ada task names in more output.
Date: Sun, 19 May 2019 12:41:00 -0000 [thread overview]
Message-ID: <1558269697.1454.11.camel@skynet.be> (raw)
In-Reply-To: <83r28v8u1j.fsf@gnu.org>
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
next prev parent reply other threads:[~2019-05-19 12:41 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 [this message]
2019-05-19 13:32 ` Eli Zaretskii
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=1558269697.1454.11.camel@skynet.be \
--to=philippe.waroquiers@skynet.be \
--cc=eliz@gnu.org \
--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