custom runtime GDB extensions

Bruce Korb bruce.korb@gmail.com
Tue Oct 23 20:54:00 GMT 2012


Hi Tom,

On Tue, Oct 23, 2012 at 1:28 PM, Tom Tromey <tromey@redhat.com> wrote:
> Bruce> Something simple.
>
> Sorry, that doesn't exist.

:(

> Bruce> A pointer to a cook book would be really helpful. Thank you so much!
>
> ctypes tutorial: http://python.net/crew/theller/ctypes/tutorial.html
>
> Somewhat out of date but still generally useful gdb-python walk-through:
> http://sourceware.org/gdb/wiki/PythonGdbTutorial

THAT'S THE TICKET!  Thank you again.  Once I've jiggered up a way
to readily load a .so and invoke a function from it, I'll post it so the next
guy might find the thing with Google.  Meanwhile, cajoling the distributions
to enable python extensions by default would be a good thing to do.
(Or just do it by default and require a --disable-python option instead....)



More information about the Gdb mailing list