gdb 7.11

由于CentOS自带的GDB版本有点低,因此下载了最新的gdb 7.11编译之后,调试过程当中提示如下错误。python

Python Exception <type 'exceptions.NameError'> Installation error: gdb.execute_unwinders function is missing:调试

修改方式:源码

将源码目录下的python模块拷贝到指定目录便可。it

Python Exception <type 'exceptions.ImportError'> No module named gdb:
gdb: warning:
Could not load the Python gdb module from `/usr/local/share/gdb/python'.
Limited Python support is available from the _gdb module.
Suggest passing --data-directory=/path/to/gdb/data-directory.io

能够看出,应该放在/usr/local/share/gdb/python编译

gdb源码目录为function

/home/dennis/DennisCode/gdb-7.11/gdb/python/lib/gdbmodule

彻底拷贝便可exception

相关文章
相关标签/搜索