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

相關文章
相關標籤/搜索