From 4bd72a218efd0075639ef3fe126586e278904a67 Mon Sep 17 00:00:00 2001 From: Marc Khouzam Date: Tue, 26 Aug 2008 18:33:46 +0000 Subject: [PATCH] Bug 245294 The cache is no longer used in MIRunControlNS and can be cleaned up. --- .../eclipse/dd/mi/service/MIRunControlNS.java | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/plugins/org.eclipse.dd.mi/src/org/eclipse/dd/mi/service/MIRunControlNS.java b/plugins/org.eclipse.dd.mi/src/org/eclipse/dd/mi/service/MIRunControlNS.java index 3fe172d3991..9384a5c8b10 100644 --- a/plugins/org.eclipse.dd.mi/src/org/eclipse/dd/mi/service/MIRunControlNS.java +++ b/plugins/org.eclipse.dd.mi/src/org/eclipse/dd/mi/service/MIRunControlNS.java @@ -29,7 +29,6 @@ import org.eclipse.dd.dsf.debug.service.IRunControl; import org.eclipse.dd.dsf.debug.service.IProcesses.IProcessDMContext; import org.eclipse.dd.dsf.debug.service.IProcesses.IThreadDMContext; import org.eclipse.dd.dsf.debug.service.IStack.IFrameDMContext; -import org.eclipse.dd.dsf.debug.service.command.CommandCache; import org.eclipse.dd.dsf.debug.service.command.ICommandControlService.ICommandControlShutdownDMEvent; import org.eclipse.dd.dsf.service.AbstractDsfService; import org.eclipse.dd.dsf.service.DsfServiceEventHandler; @@ -226,12 +225,6 @@ public class MIRunControlNS extends AbstractDsfService implements IRunControl private AbstractMIControl fConnection; - // The command cache applies only for the thread-info command at the - // container (process) level and is *always* available in non-stop mode. - // The only thing to do is to reset it every time a thread is created/ - // terminated. - private CommandCache fMICommandCache; - private boolean fTerminated = false; // ThreadStates indexed by the execution context @@ -258,8 +251,6 @@ public class MIRunControlNS extends AbstractDsfService implements IRunControl private void doInitialize(final RequestMonitor rm) { register(new String[]{IRunControl.class.getName()}, new Hashtable()); fConnection = getServicesTracker().getService(AbstractMIControl.class); - fMICommandCache = new CommandCache(getSession(), fConnection); - fMICommandCache.setContextAvailable(fConnection.getControlDMContext(), true); getSession().addServiceEventListener(this, null); rm.done(); } @@ -677,14 +668,6 @@ public class MIRunControlNS extends AbstractDsfService implements IRunControl return procService.createExecutionContext(container, threadDmc, threadId); } - public CommandCache getCache() { - return fMICommandCache; - } - - protected AbstractMIControl getConnection() { - return fConnection; - } - private void updateThreadState(IMIExecutionDMContext context, ResumedEvent event) { StateChangeReason reason = event.getReason(); boolean isStepping = reason.equals(StateChangeReason.STEP); @@ -752,7 +735,6 @@ public class MIRunControlNS extends AbstractDsfService implements IRunControl IExecutionDMContext ctx = e.getDMContext(); if (ctx instanceof IMIExecutionDMContext) { updateThreadState((IMIExecutionDMContext)ctx, e); - fMICommandCache.reset(); } } @@ -761,7 +743,6 @@ public class MIRunControlNS extends AbstractDsfService implements IRunControl IExecutionDMContext ctx = e.getDMContext(); if (ctx instanceof IMIExecutionDMContext) { updateThreadState((IMIExecutionDMContext)ctx, e); - fMICommandCache.reset(); } }