Bug 324843 - when I terminate a DSF GDB debug session the selection of the debug view disappears
Summary: when I terminate a DSF GDB debug session the selection of the debug view disa...
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-debug-dsf (show other bugs)
Version: 8.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-09 09:26 EDT by Dobrin Alexiev CLA
Modified: 2020-09-04 15:19 EDT (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 Dobrin Alexiev CLA 2010-09-09 09:26:14 EDT
Build Identifier: 

On 09/07/2010 11:50 AM, Alexiev, Dobrin wrote: 
I noticed that when I terminate a DSF GDB debug session the selection of the debug view disappears. 
Also, I have an action that is calling IAdaptable debugContext = DebugUITools.getDebugContext(); 
When I terminate the debug session the return debugContext is now referring to an object that is not in the debug view and probably is not valid: 
debugContext.toString() returns gdb[6].proc[].threadGroup[],gdb[6].proc[].OSthread[1]).thread[1].frame[0]
 
Is this intentional? If not, should I file a bug for this? 
 
I tested the Java debugger. When I terminate a Java debug session the selection of the debug view doesn’t disappear. 
 
Thanks
Dobrin


From: cdt-dev-bounces@eclipse.org [mailto:cdt-dev-bounces@eclipse.org] On Behalf Of Pawel Piech
Sent: Tuesday, September 07, 2010 5:12 PM
To: CDT General developers list.
Subject: Re: [cdt-dev] terminating a DFS debug session

Hi Dobrin,

It's a consequence of the following design decision:
The context elements that are shown in the Debug view (and other views) are backed by an object that is returned from a service.  When a debug session is terminated, the debug services are terminated and the objects that they managed are no longer accessible.  To compensate for this, the UI integration (view model) creates a dummy element to represent the terminated process.  However, since this dummy element is not backed by the data object from the service and it's equals() method does not match the original element, the view does not re-select this dummy element.

I think it's fair to call this a bug with a [cdi] "feature parity" bug.  It may require some creativity but it can be fixed :-)

Cheers,
Pawel



Reproducible: Always

Steps to Reproduce:
see details.