Figure out where my program hangs up using GDB?
How would I get all stack traces for all threads in GDB?
I need to figure out where my program hangs up and whether an external framework is causing it. I need 开发者_JAVA技巧something like the backtrace
command but one that gets all traces.
thread apply all <command>
runs <command>
for all threads, for example:
(gdb) thread apply all backtrace
Additionally, you might find the following useful: gdb
manual - Debugging Programs with Multiple Threads.
精彩评论