gdb超级基础教程
GDB超级基础教程
为什么叫超级基础呢,因为我被坑了一把....
编译选项带 -g
就可以在可执行程序中加入调试信息,然后就可以使用gdb去查看了。
使用help
命令就可以看到:
(gdb) help List of classes of commands: aliases -- Aliases of other commands breakpoints -- Making program stop at certain points data -- Examining data files -- Specifying and examining files internals -- Maintenance commands obscure -- Obscure features running -- Running the program stack -- Examining the stack status -- Status inquiries support -- Support facilities tracepoints -- Tracing of program execution without stopping the program user-defined -- User-defined commands Type "help" followed by a class name for a list of commands in that class. Type "help" followed by command name for full documentation. Command name abbreviations are allowed if unambiguous.
这里注意一点了,这些不是命令行参数,是一种种类,有需要的话再进入查看,比如输入 help status
!!!
常用的gdb命令:
breakpoint
clear
q
相关推荐
lhtzbj 2020-08-13
zmjzhangmj 2020-05-01
猫师 2020-03-16
zhongcanw 2020-02-03
amazingbo 2020-01-06
Proudoffaith 2019-12-12
fenxinzi 2019-12-10
菇星獨行 2019-12-10
sunln00 2019-12-10
LUOPING0 2019-12-06
zhongcanw 2019-12-06
RayDon 2011-03-04
fouweng 2011-08-27
wenxiHuang 2011-06-01
柯利南 2011-05-31
七夕小子 2019-11-04
farwang 2011-04-01
jiangxinyu 2011-10-06
IZZY 2012-02-02