Difference between revisions of "Cheat Sheet"

m (Gnu Debugger (gdb))
m
Line 15: Line 15:
 
step
 
step
 
s
 
s
 +
</syntaxhighlight>
 +
 +
== nm / Name List ==
 +
<syntaxhighlight  lang=shell-session highlight="" line>
 +
## 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
 
</syntaxhighlight>
 
</syntaxhighlight>

Revision as of 14:13, 18 May 2018

Gnu Debugger (gdb)

## 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