1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-25 18:05:33 +02:00

Fixes for 'Variable' and 'VariableObject'.

This commit is contained in:
Mikhail Khodjaiants 2003-08-06 20:15:56 +00:00
parent 1bc4e43764
commit 1d79549307
3 changed files with 8 additions and 2 deletions

View file

@ -1,3 +1,9 @@
2003-08-06 Mikhail Khodjaiants
* src/org/eclipse/cdt/debug/mi/core/cdi/model/Variable.java:
Fix for 'isEditable'.
* src/org/eclipse/cdt/debug/mi/core/cdi/model/VariableObject.java:
Use correct expression in 'sizeof'.
2003-08-06 Alain Magloire
First framework to deal with breaking the arrays in ranges.

View file

@ -268,7 +268,7 @@ public class Variable extends VariableObject implements ICDIVariable {
throw new MI2CDIException(e);
}
}
return (editable == null) ? false : Boolean.getBoolean(editable);
return (editable == null) ? false : editable.equalsIgnoreCase("true");
}
/**

View file

@ -111,7 +111,7 @@ public class VariableObject extends CObject implements ICDIVariableObject {
MISession mi = session.getMISession();
CommandFactory factory = mi.getCommandFactory();
String exp = "sizeof(" + getTypeName() + ")";
MIDataEvaluateExpression evaluate = factory.createMIDataEvaluateExpression("sizeof(" + getName());
MIDataEvaluateExpression evaluate = factory.createMIDataEvaluateExpression(exp);
try {
mi.postCommand(evaluate);
MIDataEvaluateExpressionInfo info = evaluate.getMIDataEvaluateExpressionInfo();