command | what it does |
---|---|
info sharedlibrary |
list shared libraries |
tui enable |
enable gui debugger |
b <linenumber> |
add breakpoint at line number |
b <function name> |
add breakpoint for function name |
info b |
show breakpoints |
d <breakpoint number> |
delete a breakpoint by number |
set exec-wrapper env <LD...> |
add some overrides to the environment variables |
p <variable> |
print current value of variable |
p *array@len |
print all array |
p /s <stringname> |
print all array |
$ gdb --args executablename arg1 arg2 arg3
$ gdb -batch -x /tmp/bin/foo --args executablename arg1 arg2 arg3