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

Bug 313512

Summary: [vm][cache][api] Add update flag to flush all properties
Product: [Tools] CDT Reporter: Anton Leherbauer <aleherb+eclipse>
Component: cdt-debug-dsfAssignee: Anton Leherbauer <aleherb+eclipse>
Status: RESOLVED FIXED QA Contact: Pawel Piech <pawel.1.piech>
Severity: enhancement    
Priority: P3 CC: marc.khouzam, pawel.1.piech
Version: 7.0   
Target Milestone: 8.0   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
Proposal aleherb+eclipse: iplog-

Description Anton Leherbauer CLA 2010-05-19 08:24:41 EDT
There is currently no easy way to flush only the element state.
This request is to add a flag IVMUpdatePolicy.FLUSH_ALL_PROPERTIES which simply clears the properties from the cache and keeps the children information.
Comment 1 Anton Leherbauer CLA 2010-05-19 08:37:42 EDT
Created attachment 169102 [details]
Proposal

I verified that this can be used to fix the icon update issue of bug 312817.
Comment 2 Marc Khouzam CLA 2010-05-19 10:07:21 EDT
(In reply to comment #1)
> Created an attachment (id=169102) [details]
> Proposal
> 
> I verified that this can be used to fix the icon update issue of bug 312817.

Just a note that (without the current patch), in bug 312817 I see that sometimes the icon gets properly updated (1 in 10 times maybe).  We must have a race condition...
Comment 3 Marc Khouzam CLA 2010-05-19 10:09:18 EDT
(In reply to comment #2)
> (In reply to comment #1)
> > Created an attachment (id=169102) [details] [details]
> > Proposal
> > 
> > I verified that this can be used to fix the icon update issue of bug 312817.
> 
> Just a note that (without the current patch), in bug 312817 I see that
> sometimes the icon gets properly updated (1 in 10 times maybe).  We must have a
> race condition...

And the icon is correct when I used GDB 7.0 but usually wrong with GDB 6.8.  We must be doing something wrong in the services, or maybe the events don't arrive with the same timing.
Comment 4 Anton Leherbauer CLA 2010-08-20 04:12:25 EDT
I committed the new flag to HEAD.  It is not used yet, but might be useful.