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

Bug 319193

Summary: [Memory Browser]Switching between two cpus does not affect edit box where address is entered
Product: [Tools] CDT Reporter: Alain Lee <a-lee>
Component: cdt-memoryAssignee: cdt-debug-inbox <cdt-debug-inbox>
Status: RESOLVED FIXED QA Contact: Ted Williams <ted>
Severity: normal    
Priority: P3 CC: teodor.madan
Version: 7.0   
Target Milestone: 8.0   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
fix
teodor.madan: iplog-
patch that will update expressions on Tab item focus change teodor.madan: iplog-

Description Alain Lee CLA 2010-07-07 16:56:45 EDT
You have two different processors while debugging and you enter two different addresses. When switching debug context, the edit box shows last entered value. It would be good if it were possible to keep that value in synch with rendering. 

Steps To Reproduce: 
1. Start a debug session for configuration with more than one cpu.
2. Open memory view with debug context set to CPU A and enter an address in Memory Browser. 
3. Change debug context to CPU B and enter a new address in Memory Browser.
4. Switching between CPU A and CPU B changes the rendering correctly and tab title is also showing correct address, but edit box where address was originally entered does not change. 

It would be good if address edit box could be kept in synch as well. Since this is where I entered my address, I tend to look there for address information.
Comment 1 Teodor Madan CLA 2010-07-16 10:45:22 EDT
Created attachment 174501 [details]
fix

Track the last good expression in the tab folder data. 

question though, wouldn't be better for updating expression per active tab as well?

i.e. 
1. Open Memory Browser view
2. GoTo expression "symbol1"
3. Create new tab with expression "symbol2"
4. Each time user changes active tab then expression field would be updating according to the expression used to create/reposition the rendering from the active tab folder.
Comment 2 Alain Lee CLA 2010-07-16 11:00:58 EDT
(In reply to comment #1)
> Created an attachment (id=174501) [details]
> fix
> Track the last good expression in the tab folder data. 
> question though, wouldn't be better for updating expression per active tab as
> well?
> i.e. 
> 1. Open Memory Browser view
> 2. GoTo expression "symbol1"
> 3. Create new tab with expression "symbol2"
> 4. Each time user changes active tab then expression field would be updating
> according to the expression used to create/reposition the rendering from the
> active tab folder.

This is also what we'd like to have. Thanks!
Comment 3 Teodor Madan CLA 2010-07-16 12:04:09 EDT
Created attachment 174512 [details]
patch that will update expressions on Tab item focus change

Patch will update expression text on active tab item change.
Comment 5 Teodor Madan CLA 2010-07-19 04:22:57 EDT
Fixed on head