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:
parent
dae454d929
commit
b6e864c88b
1 changed files with 9 additions and 11 deletions
|
@ -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();
|
||||
}
|
||||
|
@ -156,23 +154,23 @@ MIPlugin.getDefault().debugLog(line);
|
|||
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);
|
||||
}
|
||||
}
|
||||
|
||||
MIEvent[] events = (MIEvent[])list.toArray(new MIEvent[list.size()]);
|
||||
session.fireEvents(events);
|
||||
}
|
||||
} // if response != null
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue