开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜