mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-09-09 19:43:27 +02:00
Fixes for 'Variable' and 'VariableObject'.
This commit is contained in:
parent
1bc4e43764
commit
1d79549307
3 changed files with 8 additions and 2 deletions
|
@ -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
|
2003-08-06 Alain Magloire
|
||||||
|
|
||||||
First framework to deal with breaking the arrays in ranges.
|
First framework to deal with breaking the arrays in ranges.
|
||||||
|
|
|
@ -268,7 +268,7 @@ public class Variable extends VariableObject implements ICDIVariable {
|
||||||
throw new MI2CDIException(e);
|
throw new MI2CDIException(e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return (editable == null) ? false : Boolean.getBoolean(editable);
|
return (editable == null) ? false : editable.equalsIgnoreCase("true");
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -111,7 +111,7 @@ public class VariableObject extends CObject implements ICDIVariableObject {
|
||||||
MISession mi = session.getMISession();
|
MISession mi = session.getMISession();
|
||||||
CommandFactory factory = mi.getCommandFactory();
|
CommandFactory factory = mi.getCommandFactory();
|
||||||
String exp = "sizeof(" + getTypeName() + ")";
|
String exp = "sizeof(" + getTypeName() + ")";
|
||||||
MIDataEvaluateExpression evaluate = factory.createMIDataEvaluateExpression("sizeof(" + getName());
|
MIDataEvaluateExpression evaluate = factory.createMIDataEvaluateExpression(exp);
|
||||||
try {
|
try {
|
||||||
mi.postCommand(evaluate);
|
mi.postCommand(evaluate);
|
||||||
MIDataEvaluateExpressionInfo info = evaluate.getMIDataEvaluateExpressionInfo();
|
MIDataEvaluateExpressionInfo info = evaluate.getMIDataEvaluateExpressionInfo();
|
||||||
|
|
Loading…
Add table
Reference in a new issue