GDB基本调试指令
基本报错问题
problem: No symbol table is loaded. Use the "file" command.
解决方法:在编译时使用 gcc -g test.c -o test
或者在gdb状态中加入要被调试的文件 file + 文件名字
基本操作指令
显示代码: list(l)
打印变量的值:print(p) + name ; display + name
命令
简写形式
说明
list
l
查看源代码
backtrace
bt, where
打印函数栈信
原创
2022-03-04 00:14:38 ·
1589 阅读 ·
0 评论