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

Bug 311958

Summary: [debug view] Terminate-And-Relaunch action does not relaunch if a non-launch element is selected.
Product: [Tools] CDT Reporter: Pawel Piech <pawel.1.piech>
Component: cdt-debug-dsfAssignee: Project Inbox <cdt-debug-dsf-inbox>
Status: RESOLVED DUPLICATE QA Contact: Pawel Piech <pawel.1.piech>
Severity: normal    
Priority: P3 CC: pawel.1.piech
Version: 7.0   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Bug Depends on: 252859    
Bug Blocks:    

Description Pawel Piech CLA 2010-05-06 14:59:31 EDT
The terminate and relaunch action terminates the debug session, but does not relaunch it.

The problem is that the action implementation calls getAdapter(ILaunch.class) on the selected element, but after the session terminates, the DSF element doesn't have Session.getModelAdapter() the mapping to the launch anymore.

I think the right way to fix this is to move the adapter registration out of the session and into the view model.
Comment 1 Pawel Piech CLA 2010-05-06 15:04:41 EDT
My memory must be getting frail, I filed the original bug less than 6 months ago...

*** This bug has been marked as a duplicate of bug 293109 ***
Comment 2 CDT Genie CLA 2010-11-12 09:23:03 EST
*** cdt cvs genie on behalf of mkhouzam ***
Bug 311958: Assertion hits because of delayed task.  So, cancel all delayed task after shutting down the exutor.

[*] GdbLaunch.java 1.11 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/gdb/launching/GdbLaunch.java?root=Tools_Project&r1=1.10&r2=1.11