diff --git a/debug/org.eclipse.cdt.debug.core/ChangeLog b/debug/org.eclipse.cdt.debug.core/ChangeLog index ceaf5a330f9..a6a30d83c93 100644 --- a/debug/org.eclipse.cdt.debug.core/ChangeLog +++ b/debug/org.eclipse.cdt.debug.core/ChangeLog @@ -1,3 +1,7 @@ +2003-08-06 Mikhail Khodjaiants + Added the implementation of the 'getType' and 'getTypeName' methods of the 'CVaraible:ErrorVariable' class. + * CVariable.java + 2003-08-06 Mikhail Khodjaiants Uncommented the 'sizeof' method of 'ICDIVariableObject'. * ICDIVariableObject.java diff --git a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CVariable.java b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CVariable.java index 97593229b68..846fb15e46f 100644 --- a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CVariable.java +++ b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CVariable.java @@ -89,8 +89,7 @@ public abstract class CVariable extends CDebugElement */ public String getTypeName() throws CDIException { - // TODO When the 'getType' method is moved to 'ICDIVariableObject' - return null; + return ( fVariableObject != null ) ? fVariableObject.getTypeName() : ""; } /* (non-Javadoc) @@ -98,8 +97,7 @@ public abstract class CVariable extends CDebugElement */ public ICDIType getType() throws CDIException { - // TODO When the 'getType' method is moved to 'ICDIVariableObject' - return null; + return ( fVariableObject != null ) ? fVariableObject.getType() : null; } /* (non-Javadoc)