Ubuntu源码安装gdb9.2以及gdb常用插件安装
一、为什么要源码编译安装gdb
有时Ubuntu包管理器最新的gdb版本较老,在本人环境中为8.1.1,有bug影响了正常调试,故进行升级
二、gdb安装
1 2 3 4 5 6 7 8 9
| apt remove gdb wget http://ftp.gnu.org/gnu/gdb/gdb-9.2.tar.gz tar xvf gdb-9.2.tar.gz mkdir build && cd build ../configure --prefix=/root/tools/gdb --with-python=/usr/bin/python3 make -j12 make install export PATH=/root/tools/gdb/bin:$PATH ln -s /root/tools/gdb/bin/gdb /usr/bin/gdb
|
三、插件安装
gef
1 2 3
| git clone https://github.com/hugsy/gef
|
pwndbg
1 2 3 4 5
| git clone https://github.com/pwndbg/pwndbg cd pwndbg sudo
|
peda
1 2
| git clone https://github.com/longld/peda.git ~/peda echo "source ~/peda/peda.py" >> ~/.gdbinit
|