diff options
author | Vladimir Prus <vladimir@codesourcery.com> | 2006-12-08 13:10:38 +0000 |
---|---|---|
committer | Vladimir Prus <vladimir@codesourcery.com> | 2006-12-08 13:10:38 +0000 |
commit | 18ba7a1cce64b06e5563be096d7faa94a72b24b2 (patch) | |
tree | 64f9b0bb3a1c08a337fcad72374947e6f2fa6469 | |
parent | 41ce36beae9467b9056d73d58fe78c1f08b15057 (diff) | |
download | gdb-18ba7a1cce64b06e5563be096d7faa94a72b24b2.zip gdb-18ba7a1cce64b06e5563be096d7faa94a72b24b2.tar.gz gdb-18ba7a1cce64b06e5563be096d7faa94a72b24b2.tar.bz2 |
2006-12-08 Vladimir Prus <vladimir@codesourcery.com>
* varobj.c (cplus_value_of_child): When accessing
base suboject, don't specially process references.
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/varobj.c | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 2d9489b..4596d6e 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -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 diff --git a/gdb/varobj.c b/gdb/varobj.c index c664bfd..500788b 100644 --- a/gdb/varobj.c +++ b/gdb/varobj.c @@ -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; |