OS:Kali2020.3
安装以下文件即可:
sudo apt-get install libc6-dbg gdb valgrind
也可以下载gdb源码,编译安装的时候加上python支持,
./configure --prefix=/usr \--with-system-readline \--with-python=/usr/bin/python3 &&
或者
./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