See content of running process

  • You can see stack frame info and overview of the running process by it’s PID in gdb. Let’s for example run cat command to see it’s stack frame info.
# in terminal window 1
cat
# in terminal window 2
ps aux | grep cat       # get the PID of cat from this output
pmap {{PID of cat}}
sudo gdb -p {{PID of cat}}
# Inside GDB
# (gdb) bt
# (gdb) info frame 0
# (gdb) info frame 1
  • I have tried gef and gdbfrontend and I think they are both good one, you should also try --tui option with gdb, now it also have colorful interface.