mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-07 09:46:02 +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:
parent
e9a31cfcb2
commit
376f1cb9c1
1 changed files with 4 additions and 1 deletions
|
@ -978,7 +978,10 @@ public class GDBProcesses_7_0 extends AbstractDsfService
|
|||
// 280631
|
||||
try {
|
||||
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) {}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue