GDB Flashcards Preview

OSCE > GDB > Flashcards

Flashcards in GDB Deck (11):
1

How to start program in gdb?

Gdb /bin/bash

2

Setting breakpoint?

Break main or b main

3

Run prog in gdb

Run or r

4

Show register information

Info registers or ir

5

Display each registers?

Display /x $eax or
display /x $ax

6

Show instructions

Disassemble $eip

7

Show instructions

Disassemble $eip

8

Next instruction

Ni

9

Which registers gdb does not show?

X87 floating point registers

10

How to show x87 registers in gdb?

Info all-registers

11

Set Intel syntax

Set disassembly-flavour intel