1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 14:42:11 +02:00

[26674] GdbLaunch made the assumption that if GdbLaunch.shutdownSession has been called, the entire launch has been terminated. This is not true when another process was added to the launch. This fix makes it so that calling GdbLaunch.shutdownSession does not imply the entire launch is terminated.

This commit is contained in:
Marc Khouzam 2009-03-02 20:41:49 +00:00
parent ddd702bf6f
commit 5bf8936d3c

View file

@ -201,19 +201,7 @@ public class GdbLaunch extends Launch
// ITerminate
@Override
public boolean canTerminate() {
return super.canTerminate() && fInitialized && !fShutDown;
}
@Override
public boolean isTerminated() {
return super.isTerminated() || fShutDown;
}
@Override
public void terminate() throws DebugException {
if (fShutDown) return;
super.terminate();
return fInitialized && super.canTerminate();
}
// ITerminate
///////////////////////////////////////////////////////////////////////////