[RFC][patch 3/9] export hooks mechanism to Python

Tom Tromey tromey@redhat.com
Wed Apr 30 23:00:00 GMT 2008


>>>>> "Daniel" == Daniel Jacobowitz <drow@false.org> writes:

Daniel> What sort of events are you hooking usefully?  Can we share e.g. the
Daniel> CLI "hook-" mechanism?

A lot of this code is just speculative -- based on the idea that it
would be nice to be able to write Python scripts which do things
reactively; say for instance take some action after an "attach".
(A lot of this has never even been tried.)

However internally the Python code uses events to track breakpoint
creation and destruction.  I suppose I could try to add new observers
to let me do that.

Tom



More information about the Gdb-patches mailing list