Skip to main content


Installing gdb

sudo apt install gdb

Installing PEDA

git clone ~/peda

echo "source ~/peda/" >> ~/.gdbinit

Open binaries with gdb

gdb [binary]

gdb -p [process id]

Find below some additional and useful gdb commands:

For example, you can use:

  • x/20w $esi, which displays 20 words starting from where esi points to.


  • x/10i $eip, which displays 10 instructions starting from where eip points to.


You can find more gdb x command references: here