GDB Flashcards

Learn gdb

1
Q

How to start program in gdb?

A

Gdb /bin/bash

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

Setting breakpoint?

A

Break main or b main

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

Run prog in gdb

A

Run or r

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

Show register information

A

Info registers or ir

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

Display each registers?

A

Display /x $eax or

display /x $ax

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

Show instructions

A

Disassemble $eip

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

Show instructions

A

Disassemble $eip

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

Next instruction

A

Ni

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

Which registers gdb does not show?

A

X87 floating point registers

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

How to show x87 registers in gdb?

A

Info all-registers

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

Set Intel syntax

A

Set disassembly-flavour intel

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