Cheat Sheet

Revision as of 14:51, 24 May 2018 by Dmina (talk | contribs) (Gnu Debugger (gdb))

Gnu Debugger (gdb)

## Runnin
gdb <program>
gdb --args
gdb --pid

set args
run
kill

## Navigation
info functions
info variables
info scope <function name>

## Debugging
# Set a breakpoint
break *_start

# Move forward / step
move
m
step
s

nm / Name List

## Symbol Types
A: Absolute Type
B: In the uninitialized data section (BSS)
D: In the initialized data section
N: Debugging Symbol
T: In the text section
U: Undefined symbol