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

[304089] Properly call AbstractDsfService.shutdown()

This commit is contained in:
Marc Khouzam 2010-02-26 20:06:30 +00:00
parent c9cae79c98
commit cf8ca123cf
5 changed files with 26 additions and 5 deletions

View file

@ -144,7 +144,14 @@ public class GDBBackend extends AbstractDsfService implements IGDBBackend {
new MonitorJobStep(InitializationShutdownStep.Direction.SHUTTING_DOWN),
new GDBProcessStep(InitializationShutdownStep.Direction.SHUTTING_DOWN),
};
Sequence shutdownSequence = new Sequence(getExecutor(), requestMonitor) {
Sequence shutdownSequence =
new Sequence(getExecutor(),
new RequestMonitor(getExecutor(), requestMonitor) {
@Override
protected void handleCompleted() {
GDBBackend.super.shutdown(requestMonitor);
}
}) {
@Override public Step[] getSteps() { return shutdownSteps; }
};
getExecutor().execute(shutdownSequence);

View file

@ -165,7 +165,14 @@ public class GDBControl extends AbstractMIControl implements IGDBControl {
new InferiorInputOutputInitStep(InitializationShutdownStep.Direction.SHUTTING_DOWN),
new CommandMonitoringStep(InitializationShutdownStep.Direction.SHUTTING_DOWN),
};
Sequence shutdownSequence = new Sequence(getExecutor(), requestMonitor) {
Sequence shutdownSequence =
new Sequence(getExecutor(),
new RequestMonitor(getExecutor(), requestMonitor) {
@Override
protected void handleCompleted() {
GDBControl.super.shutdown(requestMonitor);
}
}) {
@Override public Step[] getSteps() { return shutdownSteps; }
};
getExecutor().execute(shutdownSequence);

View file

@ -167,7 +167,14 @@ public class GDBControl_7_0 extends AbstractMIControl implements IGDBControl {
new InferiorInputOutputInitStep(InitializationShutdownStep.Direction.SHUTTING_DOWN),
new CommandMonitoringStep(InitializationShutdownStep.Direction.SHUTTING_DOWN),
};
Sequence shutdownSequence = new Sequence(getExecutor(), requestMonitor) {
Sequence shutdownSequence =
new Sequence(getExecutor(),
new RequestMonitor(getExecutor(), requestMonitor) {
@Override
protected void handleCompleted() {
GDBControl_7_0.super.shutdown(requestMonitor);
}
}) {
@Override public Step[] getSteps() { return shutdownSteps; }
};
getExecutor().execute(shutdownSequence);

View file

@ -286,7 +286,7 @@ public class MIBreakpoints extends AbstractDsfService implements IBreakpoints
public void shutdown(final RequestMonitor rm) {
unregister();
getSession().removeServiceEventListener(this);
rm.done();
super.shutdown(rm);
}
/* (non-Javadoc)

View file

@ -75,7 +75,7 @@ public class MIDisassembly extends AbstractDsfService implements IDisassembly {
public void shutdown(RequestMonitor rm) {
unregister();
// getSession().removeServiceEventListener(this);
rm.done();
super.shutdown(rm);
}
/* (non-Javadoc)