gdb gnu debugger

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
help classlist commands in that class.
help all list all commands.
help commandfor full documentation.
apropos word to search for commands related to "word".
Command name abbreviations are allowed if unambiguous. (gdb) help all
Examine memory
fmt [count] [format] [size] .
  • count for repeat Default: 1
  • format: x hex, decimal, unsigned decimal, tinary, float, address, instruction, char and string.octal
    Default: last used
  • size: byte, halfword, word, giant, 8 bytes. Default: last used
  • address: expression . Default: previously displayed
address is following last thing examined or printed
Command class: aliases
ni NextInstruction : Step one instruction
rc ReverseContinue: run it in reverse
rni ReverseNextInstruction: backward one instruction
rsi ReverseSingleInstruction:backward exactly one instruction
si one instruction exactly
stepping
tp tracepoint at specified line or function
tty terminal for future runs of program being debugged
where Print backtrace of all stack frames
ws single-stepping behavior at a tracepoint
Command class: breakpoints     TOC
awatch for an expression
break at specified line or function
break-range for an address range
catch catch events
catch assert failed Ada assertions
catch catch exception
catch exception Ada exceptions
catch exec calls to exec
catch fork calls to fork
catch syscall by their names and/or numbers
catch throw Catch an exception
catch vfork Catch calls to vfork
clear breakpoint at specified line or function
commands to be executed when a breakpoint is hit
condition Specify breakpoint number N to break only if COND is true

delete some breakpoints or auto-display expressions
delete bookmark
delete breakpoints some breakpoints or auto-display expressions
enable breakpoints
enable breakpoints delete Enable breakpoints and delete when hit
enable breakpoints once Enable breakpoints for one hit
save breakpoints Save current breakpoint definitions as a script
disable some breakpoints
disable breakpoints some breakpoints
save Save breakpoint definitions as a script

delete checkpoint
delete display Cancel some expressions to be displayed when program stops
delete tracepoints
delete tvariable one or more trace state variables
disable display some expressions to be displayed when program stops
disable mem
delete mem memory region
enable mem Enable memory region
disable pretty-printer
disable tracepoints
enable Enable some breakpoints
enable delete Enable breakpoints and delete when hit
enable display Enable some expressions to be displayed when program stops
enable once Enable breakpoints for one hit
enable pretty-printer GDB command to enable the specified pretty-printer
enable tracepoints Enable specified tracepoints
ftrace a fast tracepoint at specified line or function
hbreak a hardware assisted breakpoint
ignore ignore-count of breakpoint number N to COUNT
rbreak a breakpoint for all functions matching REGEXP
rwatch a read watchpoint for an expression
save gdb-index Save a gdb-index file
save tracepoints Save current tracepoint definitions as a script
skip Ignore a function while stepping
skip delete Delete skip entries
skip disable Disable skip entries
skip enable Enable skip entries
skip file Ignore a file while stepping
skip function Ignore a function while stepping
strace a static tracepoint at specified line
tbreak a temporary breakpoint
tcatch temporary catchpoints to catch events
tcatch assert Catch failed Ada assertions
tcatch catch Catch an exception
tcatch exception Catch Ada exceptions
tcatch exec Catch calls to exec
tcatch fork Catch calls to fork
tcatch syscall Catch system calls by their names and/or numbers
tcatch throw Catch an exception
tcatch vfork Catch calls to vfork
thbreak a temporary hardware assisted breakpoint
trace a tracepoint at specified line or function
watch a watchpoint for an expression
Command class: data     TOC
call a function
disassemble a specified section of memory
display value of expression EXP each time the program stops
append target code/data to a local file
append binary target code/data to a raw binary file
append binary memory to a rbf
append binary value of an expression to a rbf
append value of an expression to a rbf
append memory to a rbf
dump Dump target code/data to a local file
dump binary Write target code/data to a rbf
dump binary memory Write contents of memory to a rbf
dump binary value Write the value of an expression to a rbf
dump ihex Write target code/data to an intel hex file
dump ihex memory Write contents of memory to an ihex file
dump ihex value Write the value of an expression to an ihex file
dump memory Write contents of memory to a rbf
dump srec Write target code/data to an srec file
dump srec memory Write contents of memory to an srec file
dump srec value Write the value of an expression to an srec file
dump tekhex Write target code/data to a tekhex file
dump tekhex memory Write contents of memory to a tekhex file
dump tekhex value Write the value of an expression to a tekhex file
dump value Write the value of an expression to a rbf
find Search memory for a sequence of bytes
inspect
print
Print value of expression EXP
print-object Ask an Objective-C object to print itself
printf Printf "printf format string"
ptype Print definition of type TYPE
init-if-undefined Initialize a convenience variable if necessary
mem Define attributes for memory region or reset memory region handling to
output Like "print" but don't put in value history and don't print newline
restore Restore the contents of FILE to target memory
set Evaluate expression EXP and assign result to variable VAR
set ada Prefix command for changing Ada-specfic settings
set ada trust-PAD-over-XVS Enable or disable an optimization trusting PAD types over XVS types
set annotate annotation_level
set architecture architecture of target
set args argument list to give program being debugged when it is started
set arm Various ARM-specific commands
set arm abi the ABI
set arm apcs32 usage of ARM 32-bit mode
set arm disassembler the disassembly style
set arm fallback-mode the mode assumed when symbols are unavailable
set arm force-mode the mode assumed even when symbols are available
set arm fpu the floating point type
set auto-load-scripts the debugger's behaviour regarding auto-loaded scripts
set auto-solib-add autoloading of shared library symbols
set backtrace backtrace specific variables
set backtrace limit an upper bound on the number of backtrace levels
set backtrace past-entry whether backtraces should continue past the entry point of a program
set backtrace past-main whether backtraces should continue past "main"
set basenames-may-differ whether a source file may have multiple base names
set breakpoint Breakpoint specific settings
set breakpoint always-inserted mode for inserting breakpoints
set breakpoint auto-hw automatic usage of hardware breakpoints
set breakpoint pending debugger's behavior regarding pending breakpoints
set can-use-hw-watchpoints debugger's willingness to use watchpoint hardware
set case-sensitive case sensitivity in name search
set charset the host and target character sets
set check the status of the type/range checker
set check range range checking
set check type type checking
set circular-trace-buffer target's use of circular trace buffer
set coerce-float-to-double coercion of floats to doubles when calling functions
set complaints max number of complaints about incorrect symbols
set confirm whether to confirm potentially dangerous operations
set cp-abi the ABI used for inspecting C++ objects
set data-directory GDB's data directory
set dcache Use this command to set number of lines in dcache and line-size
set dcache line-size dcache line size in bytes (must be power of 2)
set dcache size number of dcache lines
set debug Generic command for setting gdb debugging flags
set debug arch architecture debugging
set debug arm ARM debugging
set debug check-physname cross-checking of "physname" code against demangler
set debug displaced displaced stepping debugging
set debug dwarf2-die debugging of the dwarf2 DIE reader
set debug entry-values entry values and tail call frames debugging
set debug expression expression debugging
set debug frame frame debugging
set debug infrun inferior debugging
set debug jit JIT debugging
set debug libthread-db libthread-db debugging
set debug lin-lwp debugging of GNU/Linux lwp module
set debug observer observer debugging
set debug overload debugging of C++ overloading
set debug parser parser debugging
set debug record debugging of record/replay feature
set debug remote debugging of remote protocol
set debug serial serial debugging
set debug target target debugging
set debug timestamp timestamping of debugging messages
set debug xml XML parser debugging
set debug-file-directory the directories where separate debug symbols are searched for
set debugvarobj varobj debugging
set default-collect the list of expressions to collect by default
set demangle-style the current C++ demangling style
set detach-on-fork whether gdb will detach the child of a fork
set directories the search path for finding source files
set disable-randomization disabling of debuggee's virtual address space randomization
set disassemble-next-line whether to disassemble next source line or insn when execution stops
set disconnected-tracing whether tracing continues after GDB disconnects
set displaced-stepping debugger's willingness to use displaced stepping
set editing editing of command lines as they are typed
set endian endianness of target
set environment environment variable value to give the program
set exec-direction direction of execution
set exec-done-display notification of completion for asynchronous execution commands
set exec-wrapper a wrapper for running programs
set extended-prompt the extended prompt
set extension-language mapping between filename extension and source language
set follow-exec-mode debugger response to a program call of exec
set follow-fork-mode debugger response to a program call of fork or vfork
set gnutarget the current BFD target
set height number of lines gdb thinks are in a page
set history Generic command for setting command history parameters
set history expansion history expansion on command input
set history filename the filename in which to record the command history
set history save saving of the history record on exit
set history size the size of the command history
set host-charset the host character set
set inferior-tty terminal for future runs of program being debugged
set input-radix default input radix for entering numbers
set interactive-mode whether GDB's standard input is a terminal
set language the current source language
set libthread-db-search-path search path for libthread_db
set listsize number of source lines gdb will list by default
set logging logging options
set logging file the current logfile
set logging off Disable logging
set logging on Enable logging
set logging overwrite whether logging overwrites or appends to the log file
set logging redirect the logging output mode
set max-user-call-depth the max call depth for user-defined commands
set may-insert-breakpoints permission to insert breakpoints in the target
set may-insert-fast-tracepoints permission to insert fast tracepoints in the target
set may-insert-tracepoints permission to insert tracepoints in the target
set may-interrupt permission to interrupt or signal the target
set may-write-memory permission to write into target memory
set may-write-registers permission to write into registers
set mem Memory regions settings
set mem inaccessible-by-default handling of unknown memory regions
set multiple-symbols the debugger behavior when more than one symbol are possible matches
set non-stop whether gdb controls the inferior in non-stop mode
set observer whether gdb controls the inferior in observer mode
set opaque-type-resolution resolution of opaque struct/class/union types (if set before loading symbols)
set osabi OS ABI of target
set output-radix default output radix for printing of values
set overload-resolution overload resolution in evaluating C++ functions
set pagination state of pagination
set print Generic command for setting how things print
set print address printing of addresses
set print array prettyprinting of arrays
set print array-indexes printing of array indexes
set print asm-demangle demangling of C++/ObjC names in disassembly listings
set print demangle demangling of encoded C++/ObjC names when displaying symbols
set print elements limit on string chars or array elements to print
set print entry-values printing of function arguments at function entry
set print frame-arguments printing of non-scalar frame arguments
set print inferior-events printing of inferior events (e
set print max-symbolic-offset the largest offset that will be printed in form
set print null-stop printing of char arrays to stop at first null char
set print object printing of object's derived type based on vtable info
set print pascal_static-members printing of pascal static members
set print pretty prettyprinting of structures
set print repeats threshold for repeated print elements
set print sevenbit-strings printing of 8-bit characters in strings as \nnn
set print static-members printing of C++ static members
set print symbol-filename printing of source filename and line number with
set print thread-events printing of thread events (such as thread start and exit)
set print union printing of unions interior to structures
set print vtbl printing of C++ virtual function tables
set prompt gdb's prompt
set python Prefix command for python preference settings
set python print-stack mode for Python stack dump on error
set radix default input and output number radices
set record record options
set record insn-number-max record/replay buffer limit
set record memory-query whether query if PREC cannot record memory change of next instruction
set record stop-at-limit whether record/replay stops when record/replay buffer becomes full
set remote Remote protocol specific variables
P-packet P' (set-register) packet
TracepointSource-packet TracepointSource' (TracepointSource) packet
X-packet X' (binary-download) packet
Z-packet Z' packets
access-watchpoint-packet Z4' (access-watchpoint) packet
allow-packet QAllow' (allow) packet
attach-packet vAttach' (attach) packet
binary-download-packet X' (binary-download) packet
conditional-tracepoints-packet ConditionalTracepoints' (conditional-tracepoints) packet
disable-randomization-packet QDisableRandomization' (disable-randomization) packet
exec-file the remote pathname for "run"
fast-tracepoints-packet FastTracepoints' (fast-tracepoints) packet
fetch-register-packet p' (fetch-register) packet
get-thread-information-block-address-packet qGetTIBAddr' (get-thread-information-block-address) packet
get-thread-local-storage-address-packet qGetTLSAddr' (get-thread-local-storage-address) packet
hardware-breakpoint-limit the maximum number of target hardware breakpoints
hardware-breakpoint-packet Z1' (hardware-breakpoint) packet
hardware-watchpoint-length-limit the maximum length (in bytes) of a target hardware watchpoint
hardware-watchpoint-limit the maximum number of target hardware watchpoints
hostio-close-packet vFile:close' (hostio-close) packet
hostio-open-packet vFile:open' (hostio-open) packet
hostio-pread-packet vFile:pread' (hostio-pread) packet
hostio-pwrite-packet vFile:pwrite' (hostio-pwrite) packet
hostio-unlink-packet vFile:unlink' (hostio-unlink) packet
install-in-trace-packet InstallInTrace' (install-in-trace) packet
interrupt-on-connect whether interrupt-sequence is sent to remote target when gdb connects to
interrupt-sequence interrupt sequence to remote target
kill-packet vKill' (kill) packet
library-info-packet qXfer:libraries:read' (library-info) packet
library-info-svr4-packet qXfer:libraries-svr4:read' (library-info-svr4) packet
memory-map-packet qXfer:memory-map:read' (memory-map) packet
memory-read-packet-size the maximum number of bytes per memory-read packet
memory-write-packet-size the maximum number of bytes per memory-write packet
noack-packet QStartNoAckMode' (noack) packet
osdata-packet qXfer:osdata:read' (osdata) packet
p-packet p' (fetch-register) packet
pass-signals-packet QPassSignals' (pass-signals) packet
query-attached-packet qAttached' (query-attached) packet
read-aux-vector-packet qXfer:auxv:read' (read-aux-vector) packet
read-fdpic-loadmap-packet qXfer:fdpic:read' (read-fdpic-loadmap) packet
read-sdata-object-packet qXfer:statictrace:read' (read-sdata-object) packet
read-siginfo-object-packet qXfer:siginfo:read' (read-siginfo-object) packet
read-spu-object-packet qXfer:spu:read' (read-spu-object) packet
read-watchpoint-packet Z3' (read-watchpoint) packet
reverse-continue-packet bc' (reverse-continue) packet
reverse-step-packet bs' (reverse-step) packet
run-packet vRun' (run) packet
search-memory-packet qSearch:memory' (search-memory) packet
set-register-packet P' (set-register) packet
software-breakpoint-packet Z0' (software-breakpoint) packet
static-tracepoints-packet StaticTracepoints' (static-tracepoints) packet
supported-packets-packet qSupported' (supported-packets) packet
symbol-lookup-packet qSymbol' (symbol-lookup) packet
system-call-allowed if the host system(3) call is allowed for the target
target-features-packet qXfer:features:read' (target-features) packet
threads-packet qXfer:threads:read' (threads) packet
traceframe-info-packet qXfer:trace-frame-info:read' (traceframe-info) packet
verbose-resume-packet vCont' (verbose-resume) packet
write-siginfo-object-packet qXfer:siginfo:write' (write-siginfo-object) packet
write-spu-object-packet qXfer:spu:write' (write-spu-object) packet
write-watchpoint-packet Z2' (write-watchpoint) packet
 
addresssize the maximum size of the address (in bits) in a memory packet
baud baud rate for remote serial I/O
break whether to send break if interrupted
cache cache use for remote targets
flow use of hardware flow control for remote serial I/O
logbase numerical base for remote session logging
logfile filename for remote session recording
timeout timeout limit to wait for target to respond
writesize the maximum number of bytes per memory write packet (deprecated)
set
schedule-multiple mode for resuming threads of all processes
scheduler-locking mode for locking scheduler during execution
script-extension mode for script filename extension recognition
serial default serial/parallel port configuration
solib-absolute-prefix an alternate system root
solib-search-path the search path for loading non-absolute shared library symbol files
stack-cache cache use for stack access
step-mode mode of the step operation
stop-on-solib-events stopping for shared library events
substitute-path Usage: set substitute-path FROM TO
symbol-reloading dynamic symbol table reloading multiple times in one run
sysroot an alternate system root
target-async whether gdb controls the inferior in asynchronous mode
target-charset the target character set
target-file-system-kind assumed file system kind for target reported file names
target-wide-charset the target wide character set
tcp TCP protocol specific variables
tcp auto-retry auto-retry on socket connect
tcp connect-timeout timeout limit for socket connection
tdesc target description specific variables
tdesc filename the file to read for an XML target description
trace-commands tracing of GDB CLI commands
trace-notes notes string to use for current and future trace runs
trace-stop-notes notes string to use for future tstop commands
trace-user the user name to use for current and future trace runs
trust-readonly-sections mode for reading from readonly sections
tui TUI configuration variables
tui active-border-mode the attribute mode to use for the active TUI window border
tui border-kind the kind of border for TUI windows
tui border-mode the attribute mode to use for the TUI window borders
unwind-on-terminating-exception unwinding of stack if std::terminate is called while in call dummy
unwindonsignal unwinding of stack if a signal is received while in a call dummy
variable Evaluate expression EXP and assign result to variable VAR
verbose verbosity
watchdog watchdog timer
width number of characters gdb thinks are in a line
write writing into executable and core files
undisplay Cancel some expressions to be displayed when program stops
whatis Print data type of expression EXP
x Examine memory: x/FMT ADDRESS
Command class: files     TOC
add-symbol-file Load symbols from FILE
add-symbol-file-from-memory Load the symbols out of memory from a dynamically loaded object file
cd working directory to DIR for debugger and program being debugged
core-file Use FILE as core dump for examining memory and registers
directory Add directory DIR to beginning of search path for source files
edit Edit specified file or function
exec-file Use FILE as program for getting contents of pure memory
file Use FILE as program to be debugged
forward-search Search for regular expression (see regex(3)) from last line listed
generate-core-file Save a core file with the current state of the debugged process
list List specified function or line
load Dynamically load FILE into the running program
nosharedlibrary Unload all shared object library symbols
path Add directory DIR(s) to beginning of search path for object files
pwd Print working directory
remote Manipulate files on the remote system
remote delete Delete a remote file
remote get Copy a remote file to the local system
remote put Copy a local file to the remote system
reverse-search Search backward for regular expression (see regex(3)) from last line listed
search Search for regular expression (see regex(3)) from last line listed
section Change the base address of section SECTION of the exec file to ADDR
sharedlibrary Load shared object library symbols for files matching REGEXP
symbol-file Load symbol table from executable file FILE
Command class: internals     TOC
flushregs Force gdb to flush its register cache (maintainer command)
maintenance Commands for use by GDB maintainers
m agent Translate an expression into remote agent bytecode for tracing
m agent-eval Translate an expression into remote agent bytecode for evaluation
m check-symtabs Check consistency of psymtabs and symtabs
m cplus C++ maintenance commands
m cplus first_component Print the first class/namespace component of NAME
m cplus namespace Deprecated placeholder for removed functionality
m demangle Demangle a C++/ObjC mangled name
m deprecate Deprecate a command
m dump-me Get fatal error; make debugger dump its core
m info Commands for showing internal info about the program being debugged
m info breakpoints Status of all breakpoints
m info program-spaces Info about currently known program spaces
m info psymtabs List the partial symbol tables for all object files
m info sections List the BFD sections of the exec and core files
m info symtabs List the full symbol tables for all object files
m internal-error Give GDB an internal error
m internal-warning Give GDB an internal warning
m packet Send an arbitrary packet to a remote target
m print Maintenance command for printing GDB internal state
m print architecture Print the internal architecture configuration
m print c-tdesc Print the current target description as a C source file
m print cooked-registers Print the internal register configuration including cooked values
m print dummy-frames Print the contents of the internal dummy-frame stack
m print msymbols Print dump of current minimal symbol definitions
m print objfiles Print dump of current object file definitions
m print psymbols Print dump of current partial symbol definitions
m print raw-registers Print the internal register configuration including raw values
m print reggroups Print the internal register group names
m print register-groups Print the internal register configuration including each register's group
m print registers Print the internal register configuration
m print remote-registers Print the internal register configuration including each register's
m print statistics Print statistics about internal gdb state
m print symbols Print dump of current symbol definitions
m print target-stack Print the name of each layer of the internal target stack
m print type Print a type chain for a given symbol
m set GDB internal variables used by the GDB maintainer
m set dwarf2 DWARF 2 specific variables
m set dwarf2 always-disassemble whether `info address' always disassembles DWARF expressions
m set dwarf2 max-cache-age the upper bound on the age of cached dwarf2 compilation units
m set internal-error Configure what GDB does when internal-error is detected
m set internal-error corefile whether GDB should create a core file of GDB when internal-error is detected
m set internal-error quit whether GDB should quit when an internal-error is detected
m set internal-warning Configure what GDB does when internal-warning is detected
m set internal-warning corefile whether GDB should create a core file of GDB when internal-warning is detected
m set internal-warning quit whether GDB should quit when an internal-warning is detected
m set profile internal profiling
m set python Prefix command for python maintenance settings
m set python print-stack Enable or disable printing of Python stack dump on error
m show GDB internal variables used by the GDB maintainer
m show dwarf2 DWARF 2 specific variables
m show dwarf2 always-disassemble whether `info address' always disassembles DWARF expressions
m show dwarf2 max-cache-age the upper bound on the age of cached dwarf2 compilation units
m show internal-error what GDB does when internal-error is detected
m show internal-error corefile create a core file of GDB when internal-error is detected
m show internal-error quit quit when an internal-error is detected
m show internal-warning what GDB does when internal-warning is detected
m show internal-warning corefile create a core file of GDB when internal-warning is detected
m show internal-warning quit quit when an internal-warning is detected
m show profile internal profiling
m show python Prefix command for python maintenance settings
m show python print-stack whether Python stack will be printed on error
m space the display of space usage
m time the display of time usage
m translate-address Translate a section name and address to a symbol
m undeprecate Undeprecate a command
Command class: obscure     TOC
checkpoint Fork a duplicate process (experimental)
compare-sections Compare section data on target to the exec file
complete List the completions for the rest of the line as a command
monitor Send a command to the remote monitor (remote targets only)
python Evaluate a Python command
record Abbreviated form of "target record" command
record delete Delete the rest of execution log and start recording it anew
record goto Restore the program to its state at instruction number N
record restore Restore the execution log from a file
record save Save the execution log to a file
record stop Stop the record/replay target
restart Restart : restore program context from a checkpoint
stop There is no `stop' command
Command class: running     TOC
advance Continue the program up to the given location
(same form as args for break command)
attach Attach to a process or file outside of GDB
continue Continue program being debugged
detach Detach a process or file previously attached
detach checkpoint Detach from a checkpoint (experimental)
detach inferiors Detach from inferior ID (or list of IDS)
disconnect Disconnect from a target
finish Execute until selected stack frame returns
handle Specify how to handle a signal
inferior Use this command to switch between inferiors
interrupt Interrupt the execution of the debugged program
jump Continue program being debugged at specified line or address
kill Kill execution of program being debugged
kill inferiors Kill inferior ID (or list of IDs)
next Step program
nexti Step one instruction
reverse-continue Continue program being debugged but run it in reverse
reverse-finish Execute backward until just before selected stack frame is called
reverse-next Step program backward
reverse-nexti Step backward one instruction
reverse-step Step program backward until it reaches the beginning of another source line
reverse-stepi Step backward exactly one instruction
run Start debugged program
signal Continue program giving it signal specified by the argument
start Run the debugged program until the beginning of the main procedure
step Step program until it reaches a different source line
stepi Step one instruction exactly
target Connect to a target machine or process
target child Unix child process (started by the "run" command)
target core Use a core file as a target
target exec Use an executable file as a target
target extended-remote Use a remote computer via a serial line
target multi-thread Threads and pthreads support
target record Log program while executing and replay execution from log
target record-core Log program while executing and replay execution from log
target remote Use a remote computer via a serial line
target tfile Use a trace file as a target
task Use this command to switch between Ada tasks
thread Use this command to switch between threads
thread apply Apply a command to a list of threads
thread apply all Apply a command to all threads
thread find Find threads that match a regular expression
thread name the current thread's name
until Execute until the program reaches a source line greater than the current
Command class: stack     TOC
backtrace Print backtrace of all stack frames
bt Print backtrace of all stack frames
down Select and print stack frame called by this one
frame Select and print a stack frame
return Make selected stack frame return to its caller
select-frame Select a stack frame without printing anything
up Select and print stack frame that called this one
Command class: status     TOC
info Generic command for showing things about the program being debugged
i address Describe where symbol SYM is stored
i all-registers List of all registers and their contents
i args Argument variables of current stack frame
i auto-load-scripts Print the list of automatically loaded scripts
i auxv Display the inferior's auxiliary vector
i bookmarks Status of user-settable bookmarks
i breakpoints Status of specified breakpoints (all user-settable breakpoints if no argument)
i catch Exceptions that can be caught in the current stack frame
i checkpoints IDs of currently known checkpoints
i classes All Objective-C classes
i common Print out the values contained in a Fortran COMMON block
i copying Conditions for redistributing copies of GDB
i dcache Print information on the dcache performance
i display Expressions to display when program stops
i extensions All filename extensions associated with a source language
i files Names of targets and files being debugged
i float Print the status of the floating point unit
i frame All about selected stack frame
i functions All function names
i handle What debugger does when program gets various signals
i inferiors IDs of specified inferiors (all inferiors if no argument)
i line Core addresses of the code for a source line
i locals Local variables of current stack frame
i macro the definition of MACRO
i macros the definitions of all macros at LINESPEC
i mem Memory region attributes
i os OS data ARG
i pretty-printer GDB command to list all registered pretty-printers
i proc /proc process information about any running process
i proc all List all available /proc info
i proc cmdline List command line arguments of the process
i proc cwd List current working directory of the process
i proc exe List absolute filename for executable of the process
i proc mappings List of mapped memory regions
i proc stat List process info from /proc/PID/stat
i proc status List process info from /proc/PID/status
i program Execution status of the program
i record Info record options
i registers List of integer registers and their contents
i scope List the variables local to a scope
i selectors All Objective-C selectors
i set all GDB settings
i sharedlibrary Status of loaded shared object libraries
i signals What debugger does when program gets various signals
i skip Display the status of skips
i source Information about the current source file
i sources Source files in the program
i stack Backtrace of the stack
i static-tracepoint-markers List target static tracepoints markers
i symbol Describe what symbol is at location ADDR
i target Names of targets and files being debugged
i tasks Provide information about all known Ada tasks
i terminal Print inferior's saved terminal status
i threads Display currently known threads
i tracepoints Status of specified tracepoints (all tracepoints if no argument)
i tvariables Status of trace state variables and their values
i types All type names
i variables All global and static variable names
i vector Print the status of the vector unit
i warranty Various kinds of warranty you do not have
i watchpoints Status of specified watchpoints (all watchpoints if no argument)
i win List of all displayed windows
macro Prefix for commands dealing with C preprocessor macros
macro define Define a new C/C++ preprocessor macro
macro expand Fully expand any C/C++ preprocessor macro invocations in EXPRESSION
macro expand-once Expand C/C++ preprocessor macro invocations appearing directly in EXPRESSION
macro list List all the macros defined using the `macro define' command
macro undef Remove the definition of the C/C++ preprocessor macro with the given name
show Generic command for showing things about the debugger
show ada Generic command for showing Ada-specific settings
show ada trust-PAD-over-XVS whether an optimization trusting PAD types over XVS types is activated
show annotate annotation_level
show architecture architecture of target
show args argument list to give program being debugged when it is started
show arm Various ARM-specific commands
show arm abi the ABI
show arm apcs32 usage of ARM 32-bit mode
show arm disassembler the disassembly style
show arm fallback-mode the mode assumed when symbols are unavailable
show arm force-mode the mode assumed even when symbols are available
show arm fpu the floating point type
show auto-load-scripts the debugger's behaviour regarding auto-loaded scripts
show auto-solib-add autoloading of shared library symbols
show backtrace backtrace specific variables
show backtrace limit the upper bound on the number of backtrace levels
show backtrace past-entry whether backtraces should continue past the entry point of a program
show backtrace past-main whether backtraces should continue past "main"
show basenames-may-differ whether a source file may have multiple base names
show breakpoint Breakpoint specific settings
show breakpoint always-inserted mode for inserting breakpoints
show breakpoint auto-hw automatic usage of hardware breakpoints
show breakpoint pending debugger's behavior regarding pending breakpoints
show can-use-hw-watchpoints debugger's willingness to use watchpoint hardware
show case-sensitive case sensitivity in name search
show charset the host and target character sets
show check the status of the type/range checker
show check range range checking
show check type type checking
show circular-trace-buffer target's use of circular trace buffer
show coerce-float-to-double coercion of floats to doubles when calling functions
show commands the history of commands you typed
show complaints max number of complaints about incorrect symbols
show confirm whether to confirm potentially dangerous operations
show convenience Debugger convenience ("$foo") variables
show copying Conditions for redistributing copies of GDB
show cp-abi the ABI used for inspecting C++ objects
show data-directory GDB's data directory
show dcache dcachesettings
show dcache line-size dcache line size
show dcache size number of dcache lines
show debug Generic command for showing gdb debugging flags
show debug arch architecture debugging
show debug arm ARM debugging
show debug check-physname cross-checking of "physname" code against demangler
show debug displaced displaced stepping debugging
show debug dwarf2-die debugging of the dwarf2 DIE reader
show debug entry-values entry values and tail call frames debugging
show debug expression expression debugging
show debug frame frame debugging
show debug infrun inferior debugging
show debug jit JIT debugging
show debug libthread-db libthread-db debugging
show debug lin-lwp debugging of GNU/Linux lwp module
show debug observer observer debugging
show debug overload debugging of C++ overloading
show debug parser parser debugging
show debug record debugging of record/replay feature
show debug remote debugging of remote protocol
show debug serial serial debugging
show debug target target debugging
show debug timestamp timestamping of debugging messages
show debug xml XML parser debugging
show debug-file-directory the directories where separate debug symbols are searched for
show debugvarobj varobj debugging
show default-collect the list of expressions to collect by default
show demangle-style the current C++ demangling style
show detach-on-fork whether gdb will detach the child of a fork
show directories the search path for finding source files
show disable-randomization disabling of debuggee's virtual address space randomization
show disassemble-next-line whether to disassemble next source line or insn when execution stops
show disconnected-tracing whether tracing continues after GDB disconnects
show displaced-stepping debugger's willingness to use displaced stepping
show editing editing of command lines as they are typed
show endian endianness of target
show environment The environment to give the program
show exec-direction direction of execution (forward/reverse)
show exec-done-display notification of completion for asynchronous execution commands
show exec-wrapper the wrapper for running programs
show extended-prompt the extended prompt
show extension-language mapping between filename extension and source language
show follow-exec-mode debugger response to a program call of exec
show follow-fork-mode debugger response to a program call of fork or vfork
show gnutarget the current BFD target
show height number of lines gdb thinks are in a page
show history Generic command for showing command history parameters
show history expansion history expansion on command input
show history filename the filename in which to record the command history
show history save saving of the history record on exit
show history size the size of the command history
show host-charset the host character set
show inferior-tty terminal for future runs of program being debugged
show input-radix default input radix for entering numbers
show interactive-mode whether GDB's standard input is a terminal
show language the current source language
show libthread-db-search-path the current search path or libthread_db
show listsize number of source lines gdb will list by default
show logging logging options
show logging file the current logfile
show logging overwrite whether logging overwrites or appends to the log file
show logging redirect the logging output mode
show max-user-call-depth the max call depth for user-defined commands
show may-insert-breakpoints permission to insert breakpoints in the target
show may-insert-fast-tracepoints permission to insert fast tracepoints in the target
show may-insert-tracepoints permission to insert tracepoints in the target
show may-interrupt permission to interrupt or signal the target
show may-write-memory permission to write into target memory
show may-write-registers permission to write into registers
show mem Memory regions settings
show mem inaccessible-by-default handling of unknown memory regions
show multiple-symbols how the debugger handles ambiguities in expressions
show non-stop whether gdb controls the inferior in non-stop mode
show observer whether gdb controls the inferior in observer mode
show opaque-type-resolution resolution of opaque struct/class/union types (if set before loading symbols)
show osabi OS ABI of target
show output-radix default output radix for printing of values
show overload-resolution overload resolution in evaluating C++ functions
show pagination state of pagination
show paths Current search path for finding object files
show print Generic command for showing print settings
show print address printing of addresses
show print array prettyprinting of arrays
show print array-indexes printing of array indexes
show print asm-demangle demangling of C++/ObjC names in disassembly listings
show print demangle demangling of encoded C++/ObjC names when displaying symbols
show print elements limit on string chars or array elements to print
show print entry-values printing of function arguments at function entry
show print frame-arguments printing of non-scalar frame arguments
show print inferior-events printing of inferior events (e
show print max-symbolic-offset the largest offset that will be printed in form
show print null-stop printing of char arrays to stop at first null char
show print object printing of object's derived type based on vtable info
show print pascal_static-members printing of pascal static members
show print pretty prettyprinting of structures
show print repeats threshold for repeated print elements
show print sevenbit-strings printing of 8-bit characters in strings as \nnn
show print static-members printing of C++ static members
show print symbol-filename printing of source filename and line number with
show print thread-events printing of thread events (such as thread start and exit)
show print union printing of unions interior to structures
show print vtbl printing of C++ virtual function tables
show prompt gdb's prompt
show python Prefix command for python preference settings
show python print-stack the mode of Python stack printing on error
show radix the default input and output number radices
show record record options
show record insn-number-max record/replay buffer limit
show record memory-query whether query if PREC cannot record memory change of next instruction
show record stop-at-limit whether record/replay stops when record/replay buffer becomes full
show remote Remote protocol specific variables
show remote P-packet `P' (set-register) packet
show remote TracepointSource-packet `TracepointSource' (TracepointSource) packet
show remote X-packet `X' (binary-download) packet
show remote Z-packet use of remote protocol `Z' packets
show remote access-watchpoint-packet `Z4' (access-watchpoint) packet
show remote allow-packet `QAllow' (allow) packet
show remote attach-packet `vAttach' (attach) packet
show remote binary-download-packet `X' (binary-download) packet
show remote conditional-tracepoints-packet `ConditionalTracepoints' (conditional-tracepoints) packet
show remote disable-randomization-packet `QDisableRandomization' (disable-randomization) packet
show remote exec-file the remote pathname for "run"
show remote fast-tracepoints-packet `FastTracepoints' (fast-tracepoints) packet
show remote fetch-register-packet `p' (fetch-register) packet
show remote get-thread-information-block-address-packet `qGetTIBAddr' (get-thread-information-block-address) packet
show remote get-thread-local-storage-address-packet `qGetTLSAddr' (get-thread-local-storage-address) packet
show remote hardware-breakpoint-limit the maximum number of target hardware breakpoints
show remote hardware-breakpoint-packet `Z1' (hardware-breakpoint) packet
show remote hardware-watchpoint-length-limit the maximum length (in bytes) of a target hardware watchpoint
show remote hardware-watchpoint-limit the maximum number of target hardware watchpoints
show remote hostio-close-packet `vFile:close' (hostio-close) packet
show remote hostio-open-packet `vFile:open' (hostio-open) packet
show remote hostio-pread-packet `vFile:pread' (hostio-pread) packet
show remote hostio-pwrite-packet `vFile:pwrite' (hostio-pwrite) packet
show remote hostio-unlink-packet `vFile:unlink' (hostio-unlink) packet
show remote install-in-trace-packet `InstallInTrace' (install-in-trace) packet
show remote interrupt-on-connect Show whether interrupt-sequence is sent to remote target when gdb connects to
show remote interrupt-sequence interrupt sequence to remote target
show remote kill-packet `vKill' (kill) packet
show remote library-info-packet `qXfer:libraries:read' (library-info) packet
show remote library-info-svr4-packet `qXfer:libraries-svr4:read' (library-info-svr4) packet
show remote memory-map-packet `qXfer:memory-map:read' (memory-map) packet
show remote memory-read-packet-size the maximum number of bytes per memory-read packet
show remote memory-write-packet-size the maximum number of bytes per memory-write packet
show remote noack-packet `QStartNoAckMode' (noack) packet
show remote osdata-packet `qXfer:osdata:read' (osdata) packet
show remote p-packet `p' (fetch-register) packet
show remote pass-signals-packet `QPassSignals' (pass-signals) packet
show remote query-attached-packet `qAttached' (query-attached) packet
show remote read-aux-vector-packet `qXfer:auxv:read' (read-aux-vector) packet
show remote read-fdpic-loadmap-packet `qXfer:fdpic:read' (read-fdpic-loadmap) packet
show remote read-sdata-object-packet `qXfer:statictrace:read' (read-sdata-object) packet
show remote read-siginfo-object-packet `qXfer:siginfo:read' (read-siginfo-object) packet
show remote read-spu-object-packet `qXfer:spu:read' (read-spu-object) packet
show remote read-watchpoint-packet `Z3' (read-watchpoint) packet
show remote reverse-continue-packet `bc' (reverse-continue) packet
show remote reverse-step-packet `bs' (reverse-step) packet
show remote run-packet `vRun' (run) packet
show remote search-memory-packet `qSearch:memory' (search-memory) packet
show remote set-register-packet `P' (set-register) packet
show remote software-breakpoint-packet `Z0' (software-breakpoint) packet
show remote static-tracepoints-packet `StaticTracepoints' (static-tracepoints) packet
show remote supported-packets-packet `qSupported' (supported-packets) packet
show remote symbol-lookup-packet `qSymbol' (symbol-lookup) packet
show remote system-call-allowed if the host system(3) call is allowed for the target
show remote target-features-packet `qXfer:features:read' (target-features) packet
show remote threads-packet `qXfer:threads:read' (threads) packet
show remote traceframe-info-packet `qXfer:trace-frame-info:read' (traceframe-info) packet
show remote verbose-resume-packet `vCont' (verbose-resume) packet
show remote write-siginfo-object-packet `qXfer:siginfo:write' (write-siginfo-object) packet
show remote write-spu-object-packet `qXfer:spu:write' (write-spu-object) packet
show remote write-watchpoint-packet `Z2' (write-watchpoint) packet
show remoteaddresssize the maximum size of the address (in bits) in a memory packet
show remotebaud baud rate for remote serial I/O
show remotebreak whether to send break if interrupted
show remotecache cache use for remote targets
show remoteflow use of hardware flow control for remote serial I/O
show remotelogbase numerical base for remote session logging
show remotelogfile filename for remote session recording
show remotetimeout timeout limit to wait for target to respond
show remotewritesize the maximum number of bytes per memory write packet (deprecated)
show schedule-multiple mode for resuming threads of all processes
show scheduler-locking mode for locking scheduler during execution
show script-extension mode for script filename extension recognition
show serial default serial/parallel port configuration
show solib-absolute-prefix the current system root
show solib-search-path the search path for loading non-absolute shared library symbol files
show stack-cache cache use for stack access
show step-mode mode of the step operation
show stop-on-solib-events stopping for shared library events
show substitute-path Usage: show substitute-path [FROM]
show symbol-reloading dynamic symbol table reloading multiple times in one run
show sysroot the current system root
show target-async whether gdb controls the inferior in asynchronous mode
show target-charset the target character set
show target-file-system-kind assumed file system kind for target reported file names
show target-wide-charset the target wide character set
show tcp TCP protocol specific variables
show tcp auto-retry auto-retry on socket connect
show tcp connect-timeout timeout limit for socket connection
show tdesc target description specific variables
show tdesc filename the file to read for an XML target description
show trace-commands state of GDB CLI command tracing
show trace-notes the notes string to use for current and future trace runs
show trace-stop-notes the notes string to use for future tstop commands
show trace-user the user name to use for current and future trace runs
show trust-readonly-sections mode for reading from readonly sections
show tui TUI configuration variables
show tui active-border-mode the attribute mode to use for the active TUI window border
show tui border-kind the kind of border for TUI windows
show tui border-mode the attribute mode to use for the TUI window borders
show unwind-on-terminating-exception unwinding of stack if std::terminate() is called while in a call dummy
show unwindonsignal unwinding of stack if a signal is received while in a call dummy
show user definitions of user defined commands
show values Elements of value history around item number IDX (or last ten)
show verbose verbosity
show version what version of GDB this is
show warranty Various kinds of warranty you do not have
show watchdog watchdog timer
show width number of characters gdb thinks are in a line
show write writing into executable and core files
Command class: support     TOC
! Execute the rest of the line as a shell command
alias Define a new command that is an alias of an existing command
apropos Search for commands matching a REGEXP
define Define a new command name
document Document a user-defined command
dont-repeat Don't repeat this command
down-silently Same as the `down' command
echo Print a constant string
help Print list of commands
if Execute nested commands once IF the conditional expression is non zero
interpreter-exec Execute a command in an interpreter
make Run the ``make'' program using the rest of the line as arguments
overlay Commands for debugging overlays
overlay auto Enable automatic overlay debugging
overlay list-overlays List mappings of overlay sections
overlay load-target Read the overlay mapping state from the target
overlay manual Enable overlay debugging
overlay map-overlay Assert that an overlay section is mapped
overlay off Disable overlay debugging
overlay unmap-overlay Assert that an overlay section is unmapped
quit Exit gdb
shell Execute the rest of the line as a shell command
source Read commands from a file named FILE
up-silently Same as the `up' command
while Execute nested commands WHILE the conditional expression is non zero
Command class: tracepoints     TOC
actions Specify the actions to be taken at a tracepoint
collect Specify one or more data items to be collected at a tracepoint
end Ends a list of commands or actions
passcount the passcount for a tracepoint
save-tracepoints Save current tracepoint definitions as a script
tdump Print everything collected at the current tracepoint
teval Specify one or more expressions to be evaluated at a tracepoint
tfind Select a trace frame;
tfind end Synonym for 'none'
tfind line Select a trace frame by source line
tfind none De-select any trace frame and resume 'live' debugging
tfind outside Select a trace frame whose PC is outside the given range (exclusive)
tfind pc Select a trace frame by PC
tfind range Select a trace frame whose PC is in the given range (inclusive)
tfind start Select the first trace frame in the trace buffer
tfind tracepoint Select a trace frame by tracepoint number
tsave Save the trace data to a file
tstart Start trace data collection
tstatus Display the status of the current trace data collection
tstop Stop trace data collection
tvariable Define a trace state variable
while-stepping Specify single-stepping behavior at a tracepoint
Command class: user-defined     TOC
Unclassified commands
add-inferior Add a new inferior
clone-inferior Clone inferior ID
eval Convert "printf format string"
function Placeholder command for showing help on convenience functions
jit-reader-load Load FILE as debug info reader and unwinder for JIT compiled code
jit-reader-unload Unload the currently loaded JIT debug info reader
remove-inferiors Remove inferior ID (or list of IDs)
unset Complement to certain "set" commands
unset environment Cancel environment variable VAR for the program
unset exec-wrapper Disable use of an execution wrapper
unset substitute-path Usage: unset substitute-path [FROM]
unset tdesc Unset target description specific variables
unset tdesc filename Unset the file to read for an XML target description
i variables
All defined variables:
Non-debugging symbols:
0x00415160 __CPPdebugHook
0x00415160 strErr!___CPPdebugHook
x[/fmt] [ address]