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

Bug fix for the else branch

This commit is contained in:
Alain Magloire 2002-08-30 05:00:52 +00:00
parent dae454d929
commit b6e864c88b

View file

@ -134,9 +134,7 @@ MIPlugin.getDefault().debugLog(line);
MIEvent event = new MIRunningEvent(type);
session.fireEvent(event);
} else if ("exit".equals(state)) {
//session.getMIInferior().setTerminated();
//MIEvent event = new MIGDBExitEvent();
//fireEvent(event);
// No need to do anything, terminate() will.
} else if ("connected".equals(state)) {
session.getMIInferior().setConnected();
}
@ -155,24 +153,24 @@ MIPlugin.getDefault().debugLog(line);
cmd.setMIOutput(response);
cmd.notifyAll();
}
}
}
// Some result record contains informaton specific to oob.
// This will happen when CLI-Command is use, for example
// doing "run" will block and return a breakpointhit
processMIOOBRecord(rr, list);
}
} else {
// Process OOBs
MIOOBRecord[] oobs = response.getMIOOBRecords();
for (int i = 0; i < oobs.length; i++) {
processMIOOBRecord(oobs[i], list);
// Process OOBs
MIOOBRecord[] oobs = response.getMIOOBRecords();
for (int i = 0; i < oobs.length; i++) {
processMIOOBRecord(oobs[i], list);
}
}
MIEvent[] events = (MIEvent[])list.toArray(new MIEvent[list.size()]);
session.fireEvents(events);
}
} // if response != null
}
/**