how can I dump out thread informations in gdb

Joel Brobecker brobecker@adacore.com
Wed Oct 22 20:06:00 GMT 2008


> Can you please tell me how can I print out what are all the existing
> threads in my programs (while I hit a breakpoint)?
> And what are the stack trace of each of those threads?

I really recommend that you take a look at the GDB documentation:
http://sourceware.org/gdb/current/onlinedocs/gdb_toc.html

There is a section about debugging programs with multiple threads:
http://sourceware.org/gdb/current/onlinedocs/gdb_5.html#SEC28

and also a section about how to get a backtrace:
http://sourceware.org/gdb/current/onlinedocs/gdb_8.html#SEC54

-- 
Joel



More information about the Gdb mailing list