This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] print threads name (bug # threads/12417)
- From: Eli Zaretskii <eliz at gnu dot org>
- To: Mohsan Saleem <mohsansaleem_ms at yahoo dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Tue, 25 Sep 2012 13:59:23 +0200
- Subject: Re: [PATCH] print threads name (bug # threads/12417)
- References: <1348561699.60933.YahooMailNeo@web114405.mail.gq1.yahoo.com>
- Reply-to: Eli Zaretskii <eliz at gnu dot org>
> Date: Tue, 25 Sep 2012 01:28:19 -0700 (PDT)
> From: Mohsan Saleem <mohsansaleem_ms@yahoo.com>
>
> ? ? ?Attached patch is for bug 12417, for printing the name of threads while printing the information of a thread.?
Thanks.
> if { [info exists thread6] } then {
> gdb_test "thread find $thread6" \
> - "Thread 6 has .*$thread6.*" "find thread id 6"
> + "Thread 6 threadname_6 has .*$thread6.*" "find thread id 6"
Isn't it better to have the name in parentheses? Otherwise, how would
the user know that this string is the name of the thread whose number
precedes it?
Also, don't we need to update the manual, where thread notifications
are described or shown in examples?
Finally, is this NEWS-worthy?