1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-07 17:56:01 +02:00

Bug 323276: We were using the wrong context when clearing the cache for the "Force thread list update" feature, with GDB 7.0 or later

This commit is contained in:
Marc Khouzam 2010-08-20 18:01:44 +00:00
parent e9a31cfcb2
commit 376f1cb9c1

View file

@ -978,7 +978,10 @@ public class GDBProcesses_7_0 extends AbstractDsfService
// 280631 // 280631
try { try {
if (fBackend.getUpdateThreadListOnSuspend()) { if (fBackend.getUpdateThreadListOnSuspend()) {
fThreadCommandCache.reset(e.getDMContext()); // We need to clear the cache for the context that we use to fill the cache,
// and it is the controDMC in this case.
ICommandControlDMContext controlDmc = DMContexts.getAncestorOfType(e.getDMContext(), ICommandControlDMContext.class);
fThreadCommandCache.reset(controlDmc);
} }
} catch (CoreException exc) {} } catch (CoreException exc) {}
} }