gdb thread related command

来源:互联网 发布:比较好的梵高传记知乎 编辑:程序博客网 时间:2024/06/05 15:45
本文转载至:http://www.mixed-mode.de/fileadmin/daten/Mixed_Mode/Downloads/MixedMode_GDB-Kurzreferenz.pdf

Threads I

Which threads are available
(gdb)info threads

Switch to a thread with id X
(gdb)thread <id>

Set a thread specific breakpoint
(gdb)break <location> thread <id>

Threads II
Switch of scheduler during single stepping
(gdb) set scheduler-locking <on|off>

Stop only one thread, let the other's continue
(gdb) set target-async 1
(gdb) set pagination off
(gdb) set non-stop on

0 0
原创粉丝点击