Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlain Magloire2003-08-22 17:09:40 +0000
committerAlain Magloire2003-08-22 17:09:40 +0000
commit480c9e4101317cb0434dbbea08de91d79144862d (patch)
treeccc0b25180dc64116c3874e9f6cdab4f827d24a0
parentd95d657a192c5fd399c54d385f65551fcf1324ff (diff)
downloadorg.eclipse.cdt-480c9e4101317cb0434dbbea08de91d79144862d.tar.gz
org.eclipse.cdt-480c9e4101317cb0434dbbea08de91d79144862d.tar.xz
org.eclipse.cdt-480c9e4101317cb0434dbbea08de91d79144862d.zip
Use VariableObject.getFullName().
-rw-r--r--debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/cdi/VariableManager.java14
1 files changed, 10 insertions, 4 deletions
diff --git a/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/cdi/VariableManager.java b/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/cdi/VariableManager.java
index 2c103b522f2..3e44883df91 100644
--- a/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/cdi/VariableManager.java
+++ b/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/cdi/VariableManager.java
@@ -304,12 +304,13 @@ public class VariableManager extends SessionObject implements ICDIVariableManage
VariableObject vo =
new VariableObject(
obj.getTarget(),
- obj.getQualifiedName(),
+ obj.getName(),
+ obj.getFullName(),
obj.getStackFrame(),
obj.getPosition(),
obj.getStackDepth());
- vo.setCastingArrayStart(start);
- vo.setCastingArrayEnd(length);
+ vo.setCastingArrayStart(obj.getCastingArrayStart() + start);
+ vo.setCastingArrayEnd(obj.getCastingArrayEnd() + length);
return vo;
}
throw new CDIException("Unknown variable object");
@@ -329,10 +330,15 @@ public class VariableManager extends SessionObject implements ICDIVariableManage
VariableObject vo =
new VariableObject(
obj.getTarget(),
- obj.getQualifiedName(),
+ obj.getName(),
+ obj.getFullName(),
obj.getStackFrame(),
obj.getPosition(),
obj.getStackDepth());
+ String casting = obj.getCastingType();
+ if (casting != null && casting.length() > 0) {
+ type = "(" + type + ")" + "(" + casting + " )";
+ }
vo.setCastingType(type);
return vo;
}

Back to the top