blob: b919d0e7155516a93937b446a2ed5b249cc62922 [file] [log] [blame]
/*
* (c) Copyright QNX Software Systems Ltd. 2002.
* All Rights Reserved.
*/
package org.eclipse.cdt.debug.mi.core.output;
/**
* GDB/MI show parsing.
* (gdb)
* -data-evaluate-expression $_exitcode
* ^done,value="10"
* (gdb)
*/
public class MIGDBShowExitCodeInfo extends MIDataEvaluateExpressionInfo {
public MIGDBShowExitCodeInfo(MIOutput o) {
super(o);
}
public int getCode() {
int code = 0;
String exp = getExpression();
try {
code = Integer.parseInt(exp);
} catch (NumberFormatException e) {
}
return code;
}
}