Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-patch] Array improvments

Index: ChangeLog
===================================================================
RCS file: /home/tools/org.eclipse.cdt.debug.core/ChangeLog,v
retrieving revision 1.235
diff -u -r1.235 ChangeLog
--- ChangeLog 20 Aug 2003 17:02:34 -0000 1.235
+++ ChangeLog 21 Aug 2003 15:11:40 -0000
@@ -1,3 +1,7 @@
+2003-08-21 Mikhail Khodjaiants
+ Use the names of array's elements returned by CDI.
+ * CVariable.java
+
 2003-08-20 Mikhail Khodjaiants
  Unable to terminate post mortem debugging session.
  Extended the 'CDebugTarget' class to overload the 'terminate' and 'canTerminate' methods.
Index: src/org/eclipse/cdt/debug/internal/core/model/CVariable.java
===================================================================
RCS file: /home/tools/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CVariable.java,v
retrieving revision 1.51
diff -u -r1.51 CVariable.java
--- src/org/eclipse/cdt/debug/internal/core/model/CVariable.java 19 Aug 2003 20:56:15 -0000 1.51
+++ src/org/eclipse/cdt/debug/internal/core/model/CVariable.java 21 Aug 2003 15:11:45 -0000
@@ -669,20 +669,7 @@
  {
   if ( fName == null )
   {
-   String cdiName = ( fOriginal != null ) ? fOriginal.getCDIVariableObject().getName() : null;
-   fName = cdiName;
-   if ( cdiName != null && getParent() instanceof ICValue )
-   {
-    CVariable parent = getParentVariable();
-    while( parent instanceof CArrayPartition )
-    {
-     parent = parent.getParentVariable();
-    }
-    if ( parent instanceof CVariable && parent.getType().isArray() )
-    {
-     fName = parent.getName() + '[' + cdiName + ']';
-    }
-   }
+   fName = ( fOriginal != null ) ? fOriginal.getCDIVariableObject().getName() : null;
   }
   return fName;
  }
@@ -932,15 +919,6 @@
  protected boolean isAccessSpecifier() throws DebugException
  {
   return ( "public".equals( getName() ) || "protected".equals( getName() ) || "private".equals( getName() ) );
- }
-
- private CVariable getParentVariable() throws DebugException
- {
-  if ( getParent() instanceof CValue )
-   return ((CValue)getParent()).getParentVariable();
-  if ( getParent() instanceof CArrayPartitionValue )
-   return ((CArrayPartitionValue)getParent()).getParentVariable();
-  return null;
  }
 
  /* (non-Javadoc)

Back to the top