开发者

Figure out where my program hangs up using GDB?

开发者 https://www.devze.com 2023-03-10 05:11 出处:网络
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 backt

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

精彩评论

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