# running and continuing program
r              # Run the program
c              # Continue execution

# Setting breakpoints
b main         # Set a breakpoint at main
b *0x08048450  # Set a breakpoint at a specific address
info break or b              # List breakpoints


# registers & stack contents
registers           # Display registers
telescope $esp # Display stack contents

# Dumping instructions & memory
x/20i $eip     # Disassemble 20 instructions at current instruction pointer
x/32x $esp     # Examine 32 words of memory at stack pointer
hexdump byte $eax # Examine memory in byte view
hexdump byte $eax --size 0x100 # Examine 0x100 byte in memory

# stack trace
bt              # stack trace

# Stepping Through Code
ni             # Step one instruction, not following function calls
si             # Step one instruction, following function calls

# symbols & functions
info functions # List all functions
p <variable>   # Print value of a variable
