Debug
Command | Description |
---|---|
start / run | Start debugged program |
list / l | List specified function or line |
next / n | Step program, proceeding through subroutine calls |
step / s | Step program until it reaches a different source line |
backtrace / bt | Print backtrace of all stack frames, or innermost COUNT frames |
frame / f | Select and print a stack frame |
finish | Execute until selected stack frame returns |
print / p | Print value of expression EXP |
set var | Assign result to variable VAR |
info / i locals | Local variables of current stack frame |
display | Print value of expression EXP each time the program stops |
undisplay | Cancel display request |
break / b | Set breakpoint at specified line or function |
continue / c | Continue program being debugged, after signal or breakpoint |
i breakpoints | Status of specified breakpoints |
d breakpoints | Delete some breakpoints or auto-display expressions |
disable breakpoints | Disable some breakpoints |
enable breakpoints | Enable some breakpoints |
watch | Set a watchpoint for an expression |
i watch | Status of specified watchpoints |
x/FMT ADDRESS | Examine memory: x/FMT ADDRESS |