0%

GDB多线程调试

  • set follow-fork-mode [parent|child]
  • set detach-on-fork [on|off]
  • set print thread-events [on|off]
  • set scheduler-locking [off|on|step]
  • thread apply [all|IDS] command
  • thread apply ID1 ID2 command
  • break test.c:123 thread all
  • info threads
  • thread ID

Ref

  1. Debugging Programs with Multiple Threads
  2. GDB调试多线程
  3. GDB调试信号、多线程、多进程
  4. gdb调试多线程 如何解死锁问题
  5. Linux多进程和多线程的一次gdb调试实例