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命令简写形式说明listl查看源代码backtracebt, where打印函数栈信
原创
2022-03-04 00:14:38 ·
1407 阅读 ·
0 评论