GDB

GDB (the GNU Debugger) lets you run a program under controlled conditions — setting breakpoints, stepping through execution, inspecting memory and registers, and disassembling code. It is part of the GNU toolchain and is a staple for debugging and reverse engineering (see Reverse Engineering).

Install this cool GDB plugin GEF.

Compile with gcc’s -g flag to include debug symbols.

TUI navigation

  1. layout next

  2. nexti (assembly next)

  3. next (code next)

  4. refresh

Commands

until

until <address> (short form: u)

diassemble Options

/r

raw bytes

/m

mix source code and assembly