help class Using one of the general help classes as an argument, you can get a list of the individual commands in that class. For example, here is the help display for the class status:

((gdb)) help status Status inquiries.

List of commands:

info -- Generic command for showing things about the program being debugged

show -- Generic command for showing things about the debugger

Type "help" followed by command name for full documentation.

Command name abbreviations are allowed if unambiguous. ((gdb))

help command With a command name as help argument, GDB displays a short paragraph on how to use that command.

apropos args The apropos args command searches through all of the GDB commands, and their documentation, for the regular expression specified in args. It prints out all matches found. For example:

apropos reload

results in:

set symbol-reloading -- Set dynamic symbol table reloading

multiple times in one run

show symbol-reloading -- Show dynamic symbol table reloading

multiple times in one run

complete args The complete args command lists all the possible completions for the beginning of a command. Use args to specify the beginning of the command you want completed. For example:

complete i

results in:

if ignore info inspect

This is intended for use by GNU Emacs.

In addition to help, you can use the GDB commands info and show to inquire about the state of your program, or the state of GDB itself. Each command supports many topics of inquiry; this manual introduces each of them in the appropriate context. The

36 GDB Commands