2 Gdb 基本命令 Gdb的命令可以通过查看help进行查找,由于Gdb的命令很多,因此Gdb的help将其分成了很多种类(class),用户可以通过进一步查看相关class找到相应命令
如下所示: (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 … 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
上述列出了Gdb各个分类的命令,注意底部的加粗部分说明其为分类命令
接下来可以具体查找各分类种的命令
如下所示: (gdb) help data Examining data
List of commands: call -- Call a function in the program delete display -- Cancel some expressions to be displayed when program stops delete mem -- Delete memory region 2 disable displ