安裝很簡單,到github上面它的教程就有
地址:https://github.com/longld/peda
在這里主要是講述一個問題
使用sudo pip install peda這個命令直接安裝peda在高版本的gdb中會有問題
也可能是python2或者3的兼容問題,我的是ubuntu16.04的系統,
所以不能使用pip安裝這個
所以切換到cd /usr/local/lib/python2.7這個文件夾,然后就是和github的教程做就行了
git clone https://github.com/longld/peda.git ~/peda echo "source ~/peda/peda.py" >> ~/.gdbinit echo "DONE! debug your program with gdb and enjoy"
運行一下gdb就可以看到peda這個插件已經正常裝載了