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 something like the backtrace command but one that gets all traces.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
thread apply all <command>runs<command>for all threads, for example:Additionally, you might find the following useful:
gdbmanual – Debugging Programs with Multiple Threads.