1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Bug 223200

Removal of commandCache
This commit is contained in:
Marc Khouzam 2008-03-20 18:03:01 +00:00
parent 3cc3d633da
commit bff2486202

View file

@ -35,7 +35,6 @@ import org.eclipse.dd.dsf.concurrent.DsfRunnable;
import org.eclipse.dd.dsf.concurrent.RequestMonitor; import org.eclipse.dd.dsf.concurrent.RequestMonitor;
import org.eclipse.dd.dsf.concurrent.Sequence; import org.eclipse.dd.dsf.concurrent.Sequence;
import org.eclipse.dd.dsf.datamodel.AbstractDMEvent; import org.eclipse.dd.dsf.datamodel.AbstractDMEvent;
import org.eclipse.dd.dsf.debug.service.command.CommandCache;
import org.eclipse.dd.dsf.debug.service.command.ICommandControl; import org.eclipse.dd.dsf.debug.service.command.ICommandControl;
import org.eclipse.dd.dsf.service.DsfServiceEventHandler; import org.eclipse.dd.dsf.service.DsfServiceEventHandler;
import org.eclipse.dd.dsf.service.DsfSession; import org.eclipse.dd.dsf.service.DsfSession;
@ -48,9 +47,7 @@ import org.eclipse.dd.mi.service.command.MIControlDMContext;
import org.eclipse.dd.mi.service.command.MIInferiorProcess; import org.eclipse.dd.mi.service.command.MIInferiorProcess;
import org.eclipse.dd.mi.service.command.MIRunControlEventProcessor; import org.eclipse.dd.mi.service.command.MIRunControlEventProcessor;
import org.eclipse.dd.mi.service.command.commands.MIGDBExit; import org.eclipse.dd.mi.service.command.commands.MIGDBExit;
import org.eclipse.dd.mi.service.command.commands.MIGDBShowExitCode;
import org.eclipse.dd.mi.service.command.commands.MIInterpreterExecConsole; import org.eclipse.dd.mi.service.command.commands.MIInterpreterExecConsole;
import org.eclipse.dd.mi.service.command.output.MIGDBShowExitCodeInfo;
import org.eclipse.dd.mi.service.command.output.MIInfo; import org.eclipse.dd.mi.service.command.output.MIInfo;
import org.eclipse.debug.core.DebugException; import org.eclipse.debug.core.DebugException;
import org.osgi.framework.BundleContext; import org.osgi.framework.BundleContext;
@ -99,8 +96,6 @@ public class GDBControl extends AbstractMIControl {
private int fGDBExitValue; private int fGDBExitValue;
final private int fGDBLaunchTimeout; final private int fGDBLaunchTimeout;
private CommandCache fCommandCache;
private MIRunControlEventProcessor fMIEventProcessor; private MIRunControlEventProcessor fMIEventProcessor;
private CLIEventProcessor fCLICommandProcessor; private CLIEventProcessor fCLICommandProcessor;
private AbstractCLIProcess fCLIProcess; private AbstractCLIProcess fCLIProcess;
@ -264,18 +259,6 @@ public class GDBControl extends AbstractMIControl {
public IPath getExecutablePath() { return fExecPath; } public IPath getExecutablePath() { return fExecPath; }
public void getInferiorExitCode(final DataRequestMonitor<Integer> rm) {
fCommandCache.execute(
new MIGDBShowExitCode(fControlDmc),
new DataRequestMonitor<MIGDBShowExitCodeInfo>(getExecutor(), rm) {
@Override
protected void handleOK() {
rm.setData(getData().getCode());
rm.done();
}
});
}
public void getInferiorProcessId(DataRequestMonitor<Integer> rm) { public void getInferiorProcessId(DataRequestMonitor<Integer> rm) {
} }
@ -559,7 +542,6 @@ public class GDBControl extends AbstractMIControl {
fInferiorProcess = new GDBInferiorProcess(GDBControl.this, fProcess.getOutputStream()); fInferiorProcess = new GDBInferiorProcess(GDBControl.this, fProcess.getOutputStream());
fCLICommandProcessor = new CLIEventProcessor(GDBControl.this, fControlDmc, fInferiorProcess); fCLICommandProcessor = new CLIEventProcessor(GDBControl.this, fControlDmc, fInferiorProcess);
fMIEventProcessor = new MIRunControlEventProcessor(GDBControl.this, fControlDmc); fMIEventProcessor = new MIRunControlEventProcessor(GDBControl.this, fControlDmc);
fCommandCache = new CommandCache(GDBControl.this);
requestMonitor.done(); requestMonitor.done();
} }