gdb_commands_reference_final
gdb_commands_reference_final
cond[ition] <n> <expr> Stop at breakpoint <n> only if <expr> is true (gdb) condition 1 x > 5
u[ntil] <line> Run until it reaches the given line (gdb) until 42
p <name> @ <n> Print <n> values starting at <name> (gdb) print arr@5
p <chars><tab> List all variables starting with <chars> (gdb) print var<tab>
do[wn] Go down one level (only possible after up) (gdb) down
l[ist] Show lines of code surrounding the current point (gdb) list
h[elp] <cmd> Get help on a specific gdb command (gdb) help run
Page 1