1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

cmdCount removed and MIEvent takes argument.

This commit is contained in:
Alain Magloire 2002-10-26 20:28:30 +00:00
parent 7d3ce278c7
commit 43dfe27212

View file

@ -79,9 +79,6 @@ public class MISession extends Observable {
MIInferior inferior;
int cmdCount = 1;
/**
* Create the gdb session.
*
@ -256,7 +253,7 @@ public class MISession extends Observable {
public synchronized void postCommand(Command cmd, long timeout) throws MIException {
// TRACING: print the command;
MIPlugin.getDefault().debugLog(cmdCount++ + " " + cmd.toString());
MIPlugin.getDefault().debugLog(cmd.toString());
// Test if we are in a sane state.
if (!txThread.isAlive() || !rxThread.isAlive()) {
@ -339,7 +336,7 @@ public class MISession extends Observable {
// Tell the observers that the session
// is finish, but we can not use the Event Thread.
// The Event Thread is being kill below.
notifyObservers(new MIGDBExitEvent());
notifyObservers(new MIGDBExitEvent(0));
// {in,out}Channel is use as predicate/condition
// in the {RX,TX,Event}Thread to detect termination