(This is more of an RFE for the upstream gdb-archer project, but filing here since I need this for a Fedora 14 feature, and IIRC I was told in on IRC by pmuldoon that filing such requests here was OK by him) I'm calculating lots of expensive-to-compute data in Python code about the state of the inferior process, and ideally it would be cached until the user does "next", "step" or "continue": anything that could affect the state of the inferior process. Is there any way to be notified when I need to invalidate a cache? Perhaps a way to register a callback that can be called when the inferior process changes, or could change (which perhaps returns a boolean to gdb indicating whether it should be removed?) tromey on IRC mentioned "hook-stop" and "hook-run" <tromey> but these aren't ideal, the user might want to use them Thoughts?
This package has changed ownership in the Fedora Package Database. Reassigning to the new owner of this component.
Upstream gdb has a 'gdb.events' module that exposes various events to Python. The current events are cont (when inferior continues), exited (inferior exits), and stop (inferior stops). That might be enough for your purposes; but if not, please let us know what else you need.
Is this complete or not?
Pinging the bug to see if it's still valid. I'll wait a few weeks, and then close it if no response is given. Thanks.
This was for use by gdb-heap, but that project is dormant, and the necessary hooks may well already exist, as per comment #3. Closing this out as WORKSFORME.