mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-12 18:55:38 +02:00
setTerminate() takes a new argument.
This commit is contained in:
parent
99a447c6b6
commit
7d3ce278c7
1 changed files with 4 additions and 4 deletions
|
@ -169,7 +169,7 @@ public class MIInferior extends Process {
|
||||||
interrupt();
|
interrupt();
|
||||||
session.postCommand(abort);
|
session.postCommand(abort);
|
||||||
abort.getMIInfo();
|
abort.getMIInfo();
|
||||||
setTerminated(true);
|
setTerminated(abort.getToken(), true);
|
||||||
} catch (MIException e) {
|
} catch (MIException e) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -226,10 +226,10 @@ public class MIInferior extends Process {
|
||||||
}
|
}
|
||||||
|
|
||||||
public synchronized void setTerminated() {
|
public synchronized void setTerminated() {
|
||||||
setTerminated(false);
|
setTerminated(0, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
synchronized void setTerminated(boolean fireEvent) {
|
synchronized void setTerminated(int token, boolean fireEvent) {
|
||||||
state = TERMINATED;
|
state = TERMINATED;
|
||||||
// Close the streams.
|
// Close the streams.
|
||||||
try {
|
try {
|
||||||
|
@ -270,7 +270,7 @@ public class MIInferior extends Process {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (fireEvent) {
|
if (fireEvent) {
|
||||||
session.fireEvent(new MIInferiorExitEvent());
|
session.fireEvent(new MIInferiorExitEvent(token));
|
||||||
}
|
}
|
||||||
notifyAll();
|
notifyAll();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue