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:
parent
c9cae79c98
commit
cf8ca123cf
5 changed files with 26 additions and 5 deletions
|
@ -144,7 +144,14 @@ public class GDBBackend extends AbstractDsfService implements IGDBBackend {
|
||||||
new MonitorJobStep(InitializationShutdownStep.Direction.SHUTTING_DOWN),
|
new MonitorJobStep(InitializationShutdownStep.Direction.SHUTTING_DOWN),
|
||||||
new GDBProcessStep(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; }
|
@Override public Step[] getSteps() { return shutdownSteps; }
|
||||||
};
|
};
|
||||||
getExecutor().execute(shutdownSequence);
|
getExecutor().execute(shutdownSequence);
|
||||||
|
|
|
@ -165,7 +165,14 @@ public class GDBControl extends AbstractMIControl implements IGDBControl {
|
||||||
new InferiorInputOutputInitStep(InitializationShutdownStep.Direction.SHUTTING_DOWN),
|
new InferiorInputOutputInitStep(InitializationShutdownStep.Direction.SHUTTING_DOWN),
|
||||||
new CommandMonitoringStep(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; }
|
@Override public Step[] getSteps() { return shutdownSteps; }
|
||||||
};
|
};
|
||||||
getExecutor().execute(shutdownSequence);
|
getExecutor().execute(shutdownSequence);
|
||||||
|
|
|
@ -167,7 +167,14 @@ public class GDBControl_7_0 extends AbstractMIControl implements IGDBControl {
|
||||||
new InferiorInputOutputInitStep(InitializationShutdownStep.Direction.SHUTTING_DOWN),
|
new InferiorInputOutputInitStep(InitializationShutdownStep.Direction.SHUTTING_DOWN),
|
||||||
new CommandMonitoringStep(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; }
|
@Override public Step[] getSteps() { return shutdownSteps; }
|
||||||
};
|
};
|
||||||
getExecutor().execute(shutdownSequence);
|
getExecutor().execute(shutdownSequence);
|
||||||
|
|
|
@ -286,7 +286,7 @@ public class MIBreakpoints extends AbstractDsfService implements IBreakpoints
|
||||||
public void shutdown(final RequestMonitor rm) {
|
public void shutdown(final RequestMonitor rm) {
|
||||||
unregister();
|
unregister();
|
||||||
getSession().removeServiceEventListener(this);
|
getSession().removeServiceEventListener(this);
|
||||||
rm.done();
|
super.shutdown(rm);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
/* (non-Javadoc)
|
||||||
|
|
|
@ -75,7 +75,7 @@ public class MIDisassembly extends AbstractDsfService implements IDisassembly {
|
||||||
public void shutdown(RequestMonitor rm) {
|
public void shutdown(RequestMonitor rm) {
|
||||||
unregister();
|
unregister();
|
||||||
// getSession().removeServiceEventListener(this);
|
// getSession().removeServiceEventListener(this);
|
||||||
rm.done();
|
super.shutdown(rm);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
/* (non-Javadoc)
|
||||||
|
|
Loading…
Add table
Reference in a new issue