Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 319193 - [Memory Browser]Switching between two cpus does not affect edit box where address is entered
Summary: [Memory Browser]Switching between two cpus does not affect edit box where add...
Status: RESOLVED FIXED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-memory (show other bugs)
Version: 7.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 8.0   Edit
Assignee: cdt-debug-inbox@eclipse.org CLA
QA Contact: Ted Williams CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-07 16:56 EDT by Alain Lee CLA
Modified: 2010-07-19 04:23 EDT (History)
1 user (show)

See Also:


Attachments
fix (3.32 KB, patch)
2010-07-16 10:45 EDT, Teodor Madan CLA
teodor.madan: iplog-
Details | Diff
patch that will update expressions on Tab item focus change (7.17 KB, patch)
2010-07-16 12:04 EDT, Teodor Madan CLA
teodor.madan: iplog-
Details | Diff

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