GDB

GDB

  • Add commands to ~/.gdbinit to run each time gdb is started
  • Set dissasembly flavor
set disassembly-flavor intel
  • Show registers
info registers
  • Read a string at memory address
x/fs 0x00000000
  • Show values of local variables in current function (stack frame)
info locals
  • Show arguments passed to current function (stack frame)
info args
  • Step over
nexti
  • Step into
stepi