因為CentOS自帶的GDB版本有點低,所以下載了最新的gdb 7.11編譯以后,調試過程中提示以下錯誤。
Python Exception <type 'exceptions.NameError'> Installation error: gdb.execute_unwinders function is missing:
修改方式:
將源碼目錄下的python模塊拷貝到指定目錄即可。
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.
可以看出,應該放在/usr/local/share/gdb/python
gdb源碼目錄為
/home/dennis/DennisCode/gdb-7.11/gdb/python/lib/gdb
完全拷貝即可
