mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-21 21:52:10 +02:00
Commands were missing return value.
This commit is contained in:
parent
501c326a4b
commit
42edb8b4d2
8 changed files with 86 additions and 10 deletions
|
@ -262,7 +262,11 @@ public class CommandFactory {
|
||||||
return new MIVarAssign(name, expr);
|
return new MIVarAssign(name, expr);
|
||||||
}
|
}
|
||||||
|
|
||||||
public MIVarUpdate createMIUpdate(String name) {
|
public MIVarUpdate createMIVarUpdate() {
|
||||||
|
return new MIVarUpdate();
|
||||||
|
}
|
||||||
|
|
||||||
|
public MIVarUpdate createMIVarUpdate(String name) {
|
||||||
return new MIVarUpdate(name);
|
return new MIVarUpdate(name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -50,6 +50,10 @@ public class MIBreakList extends MICommand
|
||||||
super("-break-list");
|
super("-break-list");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public MIBreakListInfo getMIBreakListInfo() throws MIException {
|
||||||
|
return (MIBreakListInfo)getMIInfo();
|
||||||
|
}
|
||||||
|
|
||||||
public MIInfo getMIInfo() throws MIException {
|
public MIInfo getMIInfo() throws MIException {
|
||||||
MIInfo info = null;
|
MIInfo info = null;
|
||||||
MIOutput out = getMIOutput();
|
MIOutput out = getMIOutput();
|
||||||
|
|
|
@ -25,6 +25,10 @@ public class MIThreadSelect extends MICommand
|
||||||
super("-thread-select", new String[]{Integer.toString(threadNum)});
|
super("-thread-select", new String[]{Integer.toString(threadNum)});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public MIThreadSelectInfo getMIThreadSelectInfo() throws MIException {
|
||||||
|
return (MIThreadSelectInfo)getMIInfo();
|
||||||
|
}
|
||||||
|
|
||||||
public MIInfo getMIInfo() throws MIException {
|
public MIInfo getMIInfo() throws MIException {
|
||||||
MIInfo info = null;
|
MIInfo info = null;
|
||||||
MIOutput out = getMIOutput();
|
MIOutput out = getMIOutput();
|
||||||
|
|
|
@ -51,7 +51,7 @@ public class MIVarCreate extends MICommand
|
||||||
}
|
}
|
||||||
|
|
||||||
public MIVarCreate(String name, String frameAddr, String expression) {
|
public MIVarCreate(String name, String frameAddr, String expression) {
|
||||||
super("-var-name", new String[]{name, frameAddr, expression});
|
super("-var-create", new String[]{name, frameAddr, expression});
|
||||||
}
|
}
|
||||||
|
|
||||||
public MIVarCreateInfo getMIVarCreateInfo() throws MIException {
|
public MIVarCreateInfo getMIVarCreateInfo() throws MIException {
|
||||||
|
|
|
@ -22,14 +22,14 @@ import org.eclipse.cdt.debug.mi.core.output.MIVarEvaluateExpressionInfo;
|
||||||
* value=VALUE
|
* value=VALUE
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class MIVarEvaluateExpression extends MICommand
|
public class MIVarEvaluateExpression extends MICommand {
|
||||||
{
|
|
||||||
public MIVarEvaluateExpression(String expression) {
|
public MIVarEvaluateExpression(String expression) {
|
||||||
super("-var-evaluate-expression", new String[]{expression});
|
super("-var-evaluate-expression", new String[] { expression });
|
||||||
}
|
}
|
||||||
|
|
||||||
public MIVarEvaluateExpressionInfo getMIVarEvaluateExpressionInfo() throws MIException {
|
public MIVarEvaluateExpressionInfo getMIVarEvaluateExpressionInfo()
|
||||||
return (MIVarEvaluateExpressionInfo)getMIInfo();
|
throws MIException {
|
||||||
|
return (MIVarEvaluateExpressionInfo) getMIInfo();
|
||||||
}
|
}
|
||||||
|
|
||||||
public MIInfo getMIInfo() throws MIException {
|
public MIInfo getMIInfo() throws MIException {
|
||||||
|
|
|
@ -6,6 +6,11 @@
|
||||||
|
|
||||||
package org.eclipse.cdt.debug.mi.core.command;
|
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.MIVarListChildrenInfo;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* -var-list-children NAME
|
* -var-list-children NAME
|
||||||
|
@ -21,4 +26,20 @@ public class MIVarListChildren extends MICommand
|
||||||
public MIVarListChildren(String name) {
|
public MIVarListChildren(String name) {
|
||||||
super("-var-list-children", new String[]{name});
|
super("-var-list-children", new String[]{name});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public MIVarListChildrenInfo getMIVarListChildrenInfo() throws MIException {
|
||||||
|
return (MIVarListChildrenInfo)getMIInfo();
|
||||||
|
}
|
||||||
|
|
||||||
|
public MIInfo getMIInfo() throws MIException {
|
||||||
|
MIInfo info = null;
|
||||||
|
MIOutput out = getMIOutput();
|
||||||
|
if (out != null) {
|
||||||
|
info = new MIVarListChildrenInfo(out);
|
||||||
|
if (info.isError()) {
|
||||||
|
throw new MIException(info.getErrorMsg());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return info;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,6 +6,11 @@
|
||||||
|
|
||||||
package org.eclipse.cdt.debug.mi.core.command;
|
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.MIVarShowAttributesInfo;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* -var-show-attributes NAME
|
* -var-show-attributes NAME
|
||||||
|
@ -22,4 +27,20 @@ public class MIVarShowAttributes extends MICommand
|
||||||
public MIVarShowAttributes(String name) {
|
public MIVarShowAttributes(String name) {
|
||||||
super("-var-show-attributes", new String[]{name});
|
super("-var-show-attributes", new String[]{name});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public MIVarShowAttributesInfo getMIVarShowAttributesInfo() throws MIException {
|
||||||
|
return (MIVarShowAttributesInfo)getMIInfo();
|
||||||
|
}
|
||||||
|
|
||||||
|
public MIInfo getMIInfo() throws MIException {
|
||||||
|
MIInfo info = null;
|
||||||
|
MIOutput out = getMIOutput();
|
||||||
|
if (out != null) {
|
||||||
|
info = new MIVarShowAttributesInfo(out);
|
||||||
|
if (info.isError()) {
|
||||||
|
throw new MIException(info.getErrorMsg());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return info;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,6 +6,11 @@
|
||||||
|
|
||||||
package org.eclipse.cdt.debug.mi.core.command;
|
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.MIVarUpdateInfo;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* -var-update {NAME | "*"}
|
* -var-update {NAME | "*"}
|
||||||
|
@ -15,12 +20,29 @@ package org.eclipse.cdt.debug.mi.core.command;
|
||||||
* A `*' causes all existing variable objects to be updated.
|
* A `*' causes all existing variable objects to be updated.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class MIVarUpdate extends MICommand
|
public class MIVarUpdate extends MICommand {
|
||||||
{
|
|
||||||
public MIVarUpdate() {
|
public MIVarUpdate() {
|
||||||
this("*");
|
this("*");
|
||||||
}
|
}
|
||||||
|
|
||||||
public MIVarUpdate(String name) {
|
public MIVarUpdate(String name) {
|
||||||
super("-var-update", new String[]{name});
|
super("-var-update", new String[] { name });
|
||||||
|
}
|
||||||
|
|
||||||
|
public MIVarUpdateInfo getMIVarUpdateInfo() throws MIException {
|
||||||
|
return (MIVarUpdateInfo)getMIInfo();
|
||||||
|
}
|
||||||
|
|
||||||
|
public MIInfo getMIInfo() throws MIException {
|
||||||
|
MIInfo info = null;
|
||||||
|
MIOutput out = getMIOutput();
|
||||||
|
if (out != null) {
|
||||||
|
info = new MIVarUpdateInfo(out);
|
||||||
|
if (info.isError()) {
|
||||||
|
throw new MIException(info.getErrorMsg());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return info;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue