Bug 610249

Summary: RFE: notification about changes in the inferior process
Product: [Fedora] Fedora Reporter: Dave Malcolm <dmalcolm>
Component: gdbAssignee: Sergio Durigan Junior <sergiodj>
Status: CLOSED WORKSFORME QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: rawhideCC: dmalcolm, jan.kratochvil, mmcgrath, patrickm, pmuldoon
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-06-28 21:03:35 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Dave Malcolm 2010-07-01 20:25:33 UTC
(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?

Comment 2 Fedora Admin XMLRPC Client 2011-01-06 03:21:43 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 3 Tom Tromey 2011-05-17 17:58:14 UTC
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.

Comment 4 Jan Kratochvil 2012-01-05 21:25:19 UTC
Is this complete or not?

Comment 5 Sergio Durigan Junior 2018-06-28 20:53:44 UTC
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.

Comment 6 Dave Malcolm 2018-06-28 21:03:35 UTC
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.