Using Python to debug C and C++ code (using gdb)
log in to bookmark this presentaton
The GNU debugger, gdb, is the standard debugger when dealing with bugs in machine-code programs on Linux systems. As of gdb7 it supports a Python interface, allowing experienced Python programmers to extend the reach of the debugger. Difficult debugging tasks can be dramatically simplified by adding a little python.
I'm the author of two substantial bodies of gdb python code: pretty-printers for Python itself, and for the GNU libc implementation of "malloc/free".