OS:Kali2020.3
安装以下文件即可:
sudo yum install libc6-dbg gdb valgrind
也可以下载gdb源码,编译安装的时候加上python支持,
// 下载当前最新版本 9.2
ftp://sourceware.org/pub/gdb/releases/gdb-9.2.tar.gz
// 解压
tar xvf gdb-9.2.tar.gz
//创建build文件夹
mkdir build && cd build
//安装 python-devel
sudo yum install python-devel readline-devel texinfo
../configure --prefix=/usr/local/gdb --with-system-readline --with-python="/usr/bin/python"
或者直接
../configure --with-python
参考:
https://www.tutorialspoint.com/gnu_debugger/installing_gdb.htm
http://www.linuxfromscratch.org/blfs/view/svn/general/gdb.html
https://stackoverflow.com/questions/4792483/how-to-import-gdb-in-python
https://wiki.python.org/moin/DebuggingWithGdb
https://github.com/cyrus-and/gdb-dashboard