This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: how can I dump out thread informations in gdb
> 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