UNIX Debugger Translation Table

Please let me know of any errors or omissions in the table.

Debugger gdb dbx adb sdb
Invoke gdb exefile dbx exefile adb exefile sdb exefile
Invoke on core gdb exefile core dbx exefile core adb exefile core sdb exefile core
Invoke and attach gdb exefile pid dbx exefile pid
Start execution with commandline run cmdline (or r) run cmdline :r cmdline r cmdline
Quit debugger quit quit $q q
Attach to running process attach pid attach pid 0tpid :A
Stack backtrace backtrace or bt where $c or $C t
List threads info threads threads or lwps
Show current thread thread thread or lwp $l
Change thread thread n thread t@n
Add breakpoint on function break function stop in function .function :b function: b
Add breakpoint at line break [file]linenumber stop at [file:]linenumber [function:]line b
Add breakpoint at address break *address stopi at address address :b
Conditional breakpoint break … if condition stop … -if condition
List breakpoints info breakpoints status $b B
Clear breakpoint clear (current), clear line, clear filename:line clear (current), clear line, clear filename:line address :d, .function :d line d
Watch expression display expression display expression
Remove watched expression undisplay expression or undisplay dispnum undisplay expression or undisplay dispnum
Display value print expression print expression variable / [format] variable / [format] or variable:?
Display local variables info scope dump $v * /
Move up/down stack frame up / down up / down
Continue execution continue or c cont :c c
Interrupt execution <Ctrl-C> <Ctrl-C> <Ctrl-C> <Ctrl-C>
Next line next next s
Single step step step S
Complete execution of function finish step up :u
List source code list [linenum] list [linenum] z
Disassemble disassemble address dis address address /i
List assembly listi address ?
Next instruction nexti nexti :e (not universal)
Step instruction stepi stepi :s i
Show registers info registers regs $r x
Examine memory x[/format] address examine address [/ count] [format] address / [format] address / countb1x
Memory map info target $m M
Loaded libraries info sharedlibrary loadobject -list
Helpful Links Manual, download Book, man page Manual, book man page
Debugger gdb dbx adb sdb

Back to Home Page


Contact me