Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 322311 - for CSourceNotFoundDescriptionFactory, enchance getDescription() to ignore address when description is for editor
Summary: for CSourceNotFoundDescriptionFactory, enchance getDescription() to ignore ad...
Status: CLOSED DUPLICATE of bug 314350
Alias: None
Product: CDT
Classification: Tools
Component: cdt-debug (show other bugs)
Version: 7.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 7.0.1   Edit
Assignee: Ken Ryall CLA
QA Contact: Ken Ryall CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-11 01:04 EDT by Kirk Beitz CLA
Modified: 2010-09-17 17:32 EDT (History)
2 users (show)

See Also:


Attachments
patch containing code to allow getDescription() to use different formats when being retrieved as an editor name (10.90 KB, patch)
2010-08-11 01:04 EDT, Kirk Beitz CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kirk Beitz CLA 2010-08-11 01:04:56 EDT
Created attachment 176295 [details]
patch containing code to allow getDescription() to use different formats when being retrieved as an editor name

context: at times, multiple "CSourceNotFound" editors will be opened when viewing frames in the Debug "stack" and then leaving them open during further execution and later viewing, or even at times when disassembly-stepping such contexts.

the problem is exacerbated when the StackFrameDMC objects held by various VM objects have the instruction pointer address associated with them updated; this seems especially prevalent with recent EDC changes to prevent the instruction pointer address from getting stale so that nested variable scoping and variable change highlighting perform correctly, but can be reproduced with DSF-GDB as well.

the attached patch EditorNameForFrameWithoutFilename.patch contains changes for org.eclipse.cdt.debug.core, org.eclipse.cdt.debug.ui and org.eclipse.cdt.dsf.ui that together help create a description name for a frame VM that can be used by the editor so that the name remains the same for the editor even when the address changes.  this allows later editor comparisons to re-find such "CSourceNotFound" editors and re-use them, rather than opening new ones.
Comment 1 Ken Ryall CLA 2010-09-17 17:32:20 EDT

*** This bug has been marked as a duplicate of bug 314350 ***