环境:Ubuntu16.04
安装pwndgb
git clone https://github.com/pwndbg/pwndbg
cd pwndbg
sudo ./setup.sh
安装peda
git clone https://github.com/longld/peda.git ~/peda
echo "source ~/peda/peda.py" >> ~/.gdbinit
切换gdb的调试工具pwndbg或peda:
vim ~/.gdbinit
如图:把pwndbg的注释掉,即可切换为peda