gnu debugger Flashcards
(11 cards)
1
Q
gnu debugger command lines
A
nasm -felf64 <asmFile>.asm
ld <objFile>.o
gdb <execFileName></execFileName></objFile></asmFile>
2
Q
view the list of functions
A
info functions
3
Q
disassemble functions
A
disas <function></function>
4
Q
switch to intel syntax
A
set disassembly-flavor intel
5
Q
run the executable file in gdb
A
r
6
Q
set a breakpoint
A
b*<function>[+offset]</function>
7
Q
inspect registers
A
i r / info registers
8
Q
inspect specific registers
A
i r <register> //
info registers < register name></register>
9
Q
execute next instruction
A
n i
10
Q
continue until next breakpoint
A
c
11
Q
examine memory location
A
x/<n><f><u> &<varName></varName></u></f></n>