gdb show thread names

Jonny Grant
Sat Jun 13 00:16:43 GMT 2020

Just wondering if gdb could show the thread names as they are created and deleted?

[Thread 0x7fff695e9700 (LWP 3580240) exited]
[New Thread 0x7fff98ff9700 (LWP 3580609)]

$ cat /proc/3580609/comm

Could be a race condition, if GDB showed the name, before it was renamed by the application, but still pretty useful to see the names.

If I break, and type "info thread" I can see those still created.


More information about the Gdb mailing list