Intro
run [command-line arguments]
runs the programquit
quits gdb
Breakpoints
break <function_name | line_number | file:line_number>
delete <breakpoint number>
next
instruction without diving into functionsstep
into a functioncontinue
finish
continue until current function returns
Stack backtrace
bt
backtraceprint [variable]
prints the value of the variableinfo locals
prints the values of all local variablesinfo args
prints arguments of the current functioninfo breakpoints
prints info about breakpoints