]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
2006-12-08 Vladimir Prus <vladimir@codesourcery.com>
authorVladimir Prus <vladimir@codesourcery.com>
Fri, 8 Dec 2006 13:10:38 +0000 (13:10 +0000)
committerVladimir Prus <vladimir@codesourcery.com>
Fri, 8 Dec 2006 13:10:38 +0000 (13:10 +0000)
        * varobj.c (cplus_value_of_child): When accessing
        base suboject, don't specially process references.

gdb/ChangeLog
gdb/varobj.c

index 2d9489baccd9d0a6c8f47c23e5b753e797865fca..4596d6ec63fe02fa9042dcd189ede8c0c68e8a43 100644 (file)
@@ -1,3 +1,8 @@
+2006-12-08  Vladimir Prus  <vladimir@codesourcery.com>
+
+       * varobj.c (cplus_value_of_child): When accessing
+       base suboject, don't specially process references.
+       
 2006-12-06  Andrew Stubbs  <andrew.stubbs@st.com>
 
        * event-top.c (command_handler): On EOF, print 'quit' and run quit
index c664bfd09755348fb9c0e22926c0c5fc51e1dc4b..500788bf6fb934b94f8ebc7d23e9f3cc8b83d6eb 100644 (file)
@@ -2379,8 +2379,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;