1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-13 11:15:38 +02:00

setTerminate() takes a new argument.

This commit is contained in:
Alain Magloire 2002-10-26 20:28:07 +00:00
parent 99a447c6b6
commit 7d3ce278c7

View file

@ -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();
} }