Difference between revisions of "Cheat Sheet"

m
m (Gnu Debugger (gdb))
Line 1: Line 1:
 
== Gnu Debugger (gdb)  ==
 
== Gnu Debugger (gdb)  ==
 
<syntaxhighlight  lang=shell-session highlight="" line>
 
<syntaxhighlight  lang=shell-session highlight="" line>
 +
 +
## Runnin
 +
gdb <program>
 +
gdb --args
 +
gdb --pid
 +
 +
set args
 +
run
 +
kill
 +
 
## Navigation
 
## Navigation
 
info functions
 
info functions

Revision as of 14:51, 24 May 2018

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