This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: custom runtime GDB extensions


Hi Tom,

On Tue, Oct 23, 2012 at 12:10 PM, Tom Tromey <tromey@redhat.com> wrote:
> Bruce> (gdb) mask
> [...]
>
> You can write a Python extension that loads your C code using ctypes.
> There are other viable choices as well.

I'd have to learn Python or one of the other viable choices.
I am looking for/hoping for a nice, simple cookbook solution that
doesn't involve learning how to set up Python or swig interfaces,
rebuilding gdb with python hooks and gluing together all the pieces.
Something simple.  Applying Abhijit's patch and writing the 10 line
hook function was a simple cookbook solution.  Except it does
involve rebuilding GDB, so still not as simple as I'd like.

A pointer to a cook book would be really helpful. Thank you so much!

Regards, Bruce


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]