gdb用法简介
用法
- 进入gdb:
test是编译好后生成的可执行文件,不是文件源码。gdb test
这个其实进入到gdb里面输入help就会有相应的命令简介:
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
参考文献
[1] gdb基本用法