void parse() { if (isDone()) { MIOutput out = getMIOutput(); MIOOBRecord[] oobs = out.getMIOOBRecords(); for (int i = 0; i < oobs.length; i++) { if (oobs[i] instanceof MIConsoleStreamOutput) { MIStreamRecord cons = (MIStreamRecord) oobs[i]; String str = cons.getString(); // We are interested in the signal info parseLine(str); } } } }
/** sample output: Catchpoint 3 (catch) */ protected void parse() { List aList = new ArrayList(); try { if (isDone()) { MIOutput out = getMIOutput(); MIOOBRecord[] oobs = out.getMIOOBRecords(); for (int i = 0; i < oobs.length; i++) { if (oobs[i] instanceof MIConsoleStreamOutput) { MIStreamRecord cons = (MIStreamRecord) oobs[i]; String str = cons.getString(); // We are interested in the signal info if (parseCatchpoint(str.trim(), aList)) break; } } } } finally { breakpoints = (MIBreakpoint[]) aList.toArray(new MIBreakpoint[aList.size()]); } }