mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-09-09 03:23:07 +02:00
added new method for parsing.
This commit is contained in:
parent
e25438c76b
commit
372a84559f
1 changed files with 22 additions and 0 deletions
|
@ -6,6 +6,11 @@
|
|||
|
||||
package org.eclipse.cdt.debug.mi.core.command;
|
||||
|
||||
import org.eclipse.cdt.debug.mi.core.MIException;
|
||||
import org.eclipse.cdt.debug.mi.core.output.MIInfo;
|
||||
import org.eclipse.cdt.debug.mi.core.output.MIOutput;
|
||||
import org.eclipse.cdt.debug.mi.core.output.MIVarInfoExpressionInfo;
|
||||
|
||||
/**
|
||||
*
|
||||
* -var-info-expression NAME
|
||||
|
@ -22,4 +27,21 @@ public class MIVarInfoExpression extends MICommand
|
|||
public MIVarInfoExpression(String name) {
|
||||
super("-var-info-expression", new String[]{name});
|
||||
}
|
||||
|
||||
public MIVarInfoExpressionInfo getMIVarInfoExpressionInfo() throws MIException {
|
||||
return (MIVarInfoExpressionInfo)getMIInfo();
|
||||
}
|
||||
|
||||
public MIInfo getMIInfo() throws MIException {
|
||||
MIInfo info = null;
|
||||
MIOutput out = getMIOutput();
|
||||
if (out != null) {
|
||||
info = new MIVarInfoExpressionInfo(out);
|
||||
if (info.isError()) {
|
||||
throwMIException(info, out);
|
||||
}
|
||||
}
|
||||
return info;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue