List information about all threads
(gdb) info threads
Set break point specific to a thread.
You can mention thread ID after the break point.
(gdb) break Myfunction thread 1
Switch GDB control to a given thread
Following command swicthes GDB control to thread ID 3. The thread ID is derived from the output of “info threads” command.
(gdb) thread 3
Listing Backtrace of all threads at once
(gdb) thread apply all bt
Username or E-Mail
Lost your password?
Username or E-mail: