gdb unable to read python frame information

Wesley nispray at gmail.com
Sat Mar 8 14:31:38 CET 2014


1. install gdb from source with configure option --with-python

2. install python from source with configure option --with-pydebug

3. Got error in gdb here:
2.6.6 (r266:84292, Jan 22 2014, 09:42:36) 
[GCC 4.4.7 20120313 (Red Hat 4.4.7-4)]
(gdb) py-bt
Undefined command: "py-bt".  Try "help".
(gdb) python
>import libpython
>end
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/local/share/gdb/python/libpython.py", line 49, in <module>
    _type_size_t = gdb.lookup_type('size_t')
gdb.error: No type named size_t.
Error while executing Python code.
(gdb) 



More information about the Python-list mailing list