how can I dump out thread informations in gdb

Joel Brobecker
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:

There is a section about debugging programs with multiple threads:

and also a section about how to get a backtrace:


More information about the Gdb mailing list