Bug 610249 - RFE: notification about changes in the inferior process
Summary: RFE: notification about changes in the inferior process
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Fedora
Classification: Fedora
Component: gdb
Version: rawhide
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Sergio Durigan Junior
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-07-01 20:25 UTC by Dave Malcolm
Modified: 2018-06-28 21:03 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-06-28 21:03:35 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.