首先需要安装以下依赖:
yum install python-devel expat-devel expat ncurses-devel ncurses
下载GBD8.3.1的源码并解压
./configure --with-python
make -j16
make install
进行安装,安装完可以安装GDB插件GEF,参看官网安装方法:https://gef.readthedocs.io/en/master/
参考:
https://stackoverflow.com/questions/26243956/how-to-change-the-python-interpreter-that-gdb-uses
https://stackoverflow.com/questions/10792844/python-missing-or-unusable-error-while-cross-compiling-gdb
https://www.jianshu.com/p/0a338c0ac200

本文详细介绍如何安装GDB及所需依赖,包括Python开发环境的配置,并指导如何使用make命令进行多线程编译,最后提供GDB插件GEF的安装链接。
8668

被折叠的 条评论
为什么被折叠?



