Intro
run [command-line arguments]runs the programquitquits gdb
Breakpoints
break <function_name | line_number | file:line_number>delete <breakpoint number>nextinstruction without diving into functionsstepinto a functioncontinuefinishcontinue until current function returns
Stack backtrace
btbacktraceprint [variable]prints the value of the variableinfo localsprints the values of all local variablesinfo argsprints arguments of the current functioninfo breakpointsprints info about breakpoints