gdb用法简介


gdb用法简介

用法

  • 进入gdb:
    gdb test
    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基本用法


Author: star
Reprint policy: All articles in this blog are used except for special statements CC BY 4.0 reprint polocy. If reproduced, please indicate source star !
  TOC