mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
call to ErrorInfo changed.
This commit is contained in:
parent
55dcaf643e
commit
a046952878
1 changed files with 10 additions and 7 deletions
|
@ -122,6 +122,12 @@ public class RxThread extends Thread {
|
||||||
int id = rr.getToken();
|
int id = rr.getToken();
|
||||||
Command cmd = rxQueue.removeCommand(id);
|
Command cmd = rxQueue.removeCommand(id);
|
||||||
|
|
||||||
|
// Clear the accumulate oobList on each new Result Command
|
||||||
|
// response.
|
||||||
|
MIOOBRecord [] oobRecords =
|
||||||
|
(MIOOBRecord[])oobList.toArray(new MIOOBRecord[0]);
|
||||||
|
oobList.clear();
|
||||||
|
|
||||||
// Check if the state changed.
|
// Check if the state changed.
|
||||||
String state = rr.getResultClass();
|
String state = rr.getResultClass();
|
||||||
if ("running".equals(state)) {
|
if ("running".equals(state)) {
|
||||||
|
@ -154,17 +160,11 @@ public class RxThread extends Thread {
|
||||||
} else if ("error".equals(state)) {
|
} else if ("error".equals(state)) {
|
||||||
if (session.getMIInferior().isRunning()) {
|
if (session.getMIInferior().isRunning()) {
|
||||||
session.getMIInferior().setSuspended();
|
session.getMIInferior().setSuspended();
|
||||||
MIEvent event = new MIErrorEvent(rr);
|
MIEvent event = new MIErrorEvent(rr, oobRecords);
|
||||||
session.fireEvent(event);
|
session.fireEvent(event);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Clear the accumulate oobList on each new Result Command
|
|
||||||
// response.
|
|
||||||
MIOOBRecord [] oobRecords =
|
|
||||||
(MIOOBRecord[])oobList.toArray(new MIOOBRecord[0]);
|
|
||||||
oobList.clear();
|
|
||||||
|
|
||||||
// Notify the waiting command.
|
// Notify the waiting command.
|
||||||
if (cmd != null) {
|
if (cmd != null) {
|
||||||
synchronized (cmd) {
|
synchronized (cmd) {
|
||||||
|
@ -286,6 +286,9 @@ public class RxThread extends Thread {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// Accumulate the Log Stream Output response for parsing.
|
||||||
|
// Some commands will put valuable info in the Log Stream.
|
||||||
|
oobList.add(stream);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue