[PATCH] print threads name (bug # threads/12417)

Eli Zaretskii eliz@gnu.org
Tue Sep 25 12:00:00 GMT 2012


> 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?



More information about the Gdb-patches mailing list