gnu debugger Flashcards

(11 cards)

1
Q

gnu debugger command lines

A

nasm -felf64 <asmFile>.asm
ld <objFile>.o
gdb <execFileName></execFileName></objFile></asmFile>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

view the list of functions

A

info functions

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

disassemble functions

A

disas <function></function>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

switch to intel syntax

A

set disassembly-flavor intel

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

run the executable file in gdb

A

r

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

set a breakpoint

A

b*<function>[+offset]</function>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

inspect registers

A

i r / info registers

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

inspect specific registers

A

i r <register> //
info registers < register name></register>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

execute next instruction

A

n i

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

continue until next breakpoint

A

c

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

examine memory location

A

x/<n><f><u> &<varName></varName></u></f></n>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly