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

Bug 323276

Summary: [debug view][cdi] "Force thread list update feature" does not work with GDB 7.0 or later
Product: [Tools] CDT Reporter: Marc Khouzam <marc.khouzam>
Component: cdt-debug-dsf-gdbAssignee: Marc Khouzam <marc.khouzam>
Status: RESOLVED FIXED QA Contact: Marc Khouzam <marc.khouzam>
Severity: normal    
Priority: P3 CC: john.cortell, pawel.1.piech
Version: 7.0Flags: john.cortell: review+
Target Milestone: 7.0.1   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
Fix marc.khouzam: iplog-

Description Marc Khouzam CLA 2010-08-20 13:44:53 EDT
Created attachment 177121 [details]
Fix

The solution to bug 280631 does not work for GDB 7.0 or later.
This is because in that case, when we clear GDBProcesses_7_0.fThreadCommandCache using e.getDMContext(), this context is a Container context; on the other hand, when we use fThreadCommandCache, we use it with a ICommandControlDMContext.  Therefore, the clearing of the cache does not actually clear anything.

I am able to test this fix with gdbserver, as it does not seem to be reporting new thread creation.

I believe the solution is to clear the cache for the ICommandControlDMContext instead.  I've successfully tested this patch which implements this solution.
Comment 1 Marc Khouzam CLA 2010-08-20 14:05:32 EDT
Committed patch to HEAD and 7_0.

John, can you review?
Comment 2 John Cortell CLA 2010-09-27 14:53:20 EDT
Looks good to me.