Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 311958 - [debug view] Terminate-And-Relaunch action does not relaunch if a non-launch element is selected.
Summary: [debug view] Terminate-And-Relaunch action does not relaunch if a non-launch ...
Status: RESOLVED DUPLICATE of bug 293109
Alias: None
Product: CDT
Classification: Tools
Component: cdt-debug-dsf (show other bugs)
Version: 7.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Pawel Piech CLA
URL:
Whiteboard:
Keywords:
Depends on: 252859
Blocks:
  Show dependency tree
 
Reported: 2010-05-06 14:59 EDT by Pawel Piech CLA
Modified: 2010-11-12 09:23 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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