【文件属性】:
文件名称:GDB调试详细命令
文件大小:2KB
文件格式:TXT
更新时间:2021-06-21 10:09:45
gdb c++
GDB详细手册,文档内部分内容:
//查看运行中的线程
(gdb) info thread //查看线程
(gdb) thread
//切换为线程id
(gdb) bt //backtrace 打印堆栈
(gdb) break xx.cpp:xx thread all //在所有线程上打断点
(gdb) thread apply ID1 ID2 command //让一个或多个线程执行GDB命令
(gdb) set scheduler-locking off|on|step //只有当前函数,当前线程执行
完整版本请下载该手册!