Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 345832

Summary: IExitedDMEvent not sent when restarting the process for GDB < 7.0
Product: [Tools] CDT Reporter: Marc Khouzam <marc.khouzam>
Component: cdt-debug-dsf-gdbAssignee: Project Inbox <cdt-debug-dsf-gdb-inbox>
Status: NEW --- QA Contact: Jonah Graham <jonah>
Severity: normal    
Priority: P3 CC: cdtdoug, pawel.1.piech
Version: 8.0   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Marc Khouzam CLA 2011-05-14 20:40:29 EDT
When we restart the inferior, we expect to have an IExitedDMEvent, which will tell us we can cleanup the old MIInferiorProcess class.  This event is not being send for GDB < 7.0.

The problem is that before GDB 7.0, GDB did not have an event to indicate that a process had exited, so we would trigger that even on our own, and we never did it for the case of a restart, presumably because the process was restarting anyway.  This is not the approach GDB took where, starting with 7.0, even for a restart, GDB will indicate that the inferior has exited (then started again).
Comment 1 Marc Khouzam CLA 2011-05-14 22:56:08 EDT
This bug is not urgent as the only consequence is that the MIInferiorProcess class does not get cleaned up right away, but eventually will, once the debug session is terminated.