Re: [RFC - Python] New ObjFile event

Phil Muldoon
2011-03-28T08:54:09Z

Kevin Pouget <kevin.pouget@gmail.com> writes:

> Hello,
>
> following this discussion at
> http://sourceware.org/ml/gdb/2011-03/msg00136.html, I would like to
> suggest a patch for the Python event system. Based on the ''exited",
> "cont", ... events, this patch allows a python script to register an
> interest to the loading of new object files in the debuggee. GDB
> observer "observer_attach_new_objfile" is used to trigger the Python
> callback.
>
> This patch completes the auto-loading feature

Oops forgot to mention, this patch is missing tests, documentation and a
ChangeLog entry. I realize this was/is an RFC, but the tests help
"prove" the patch for maintainers. Looking good, though!

Cheers

Phil