2006-12-06 Vladimir Prus <vladimir@codesourcery.com>
authorVladimir Prus <vladimir@codesourcery.com>
Wed, 6 Dec 2006 09:01:50 +0000 (09:01 +0000)
committerVladimir Prus <vladimir@codesourcery.com>
Wed, 6 Dec 2006 09:01:50 +0000 (09:01 +0000)
        * varobj.c (cplus_value_of_child): When accessing
        base suboject, don't specially process references.

gdb/ChangeLog
gdb/varobj.c

index b26756f469c64d282b823bdedbde8a2415be2588..fc4d21a8c248ddf8b8b518bfefd29afd876956e2 100644 (file)
@@ -1,3 +1,8 @@
+2006-12-06  Vladimir Prus  <vladimir@codesourcery.com>
+
+       * varobj.c (cplus_value_of_child): When accessing
+       base suboject, don't specially process references.
+       
 2006-12-05  Adam Nemet  <anemet@caviumnetworks.com>
 
        * MAINTAINERS (Write After Approval): Add myself.
index 309bd5e6e864a37b0ca8ea8bfa68b7f4837642c0..a06aab8f296ce95d9dbc42c7c1b46e6570b8217a 100644 (file)
@@ -2428,8 +2428,9 @@ cplus_value_of_child (struct varobj *parent, int index)
            {
              struct value *temp = NULL;
 
-             if (TYPE_CODE (value_type (parent->value)) == TYPE_CODE_PTR
-                 || TYPE_CODE (value_type (parent->value)) == TYPE_CODE_REF)
+             /* No special processing for references is needed --
+                value_cast below handles references.  */
+             if (TYPE_CODE (value_type (parent->value)) == TYPE_CODE_PTR)
                {
                  if (!gdb_value_ind (parent->value, &temp))
                    return NULL;