mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 22:52: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:
parent
ddd702bf6f
commit
5bf8936d3c
1 changed files with 1 additions and 13 deletions
|
@ -201,19 +201,7 @@ public class GdbLaunch extends Launch
|
||||||
// ITerminate
|
// ITerminate
|
||||||
@Override
|
@Override
|
||||||
public boolean canTerminate() {
|
public boolean canTerminate() {
|
||||||
return super.canTerminate() && fInitialized && !fShutDown;
|
return fInitialized && super.canTerminate();
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean isTerminated() {
|
|
||||||
return super.isTerminated() || fShutDown;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void terminate() throws DebugException {
|
|
||||||
if (fShutDown) return;
|
|
||||||
super.terminate();
|
|
||||||
}
|
}
|
||||||
// ITerminate
|
// ITerminate
|
||||||
///////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////
|
||||||
|
|
Loading…
Add table
Reference in a new issue