aboutsummaryrefslogtreecommitdiff
path: root/gdb/varobj.c
diff options
context:
space:
mode:
authorVladimir Prus <vladimir@codesourcery.com>2006-12-06 09:01:50 +0000
committerVladimir Prus <vladimir@codesourcery.com>2006-12-06 09:01:50 +0000
commit4ae4f4fb150a246ec9232d07cf754f9691feb7c9 (patch)
tree846c1c6f5a27b54af4f7b3b71a656da9fdb3f44a /gdb/varobj.c
parent747ffa7b00319aca2831228a2ed73c6b1bf7b736 (diff)
downloadgdb-4ae4f4fb150a246ec9232d07cf754f9691feb7c9.zip
gdb-4ae4f4fb150a246ec9232d07cf754f9691feb7c9.tar.gz
gdb-4ae4f4fb150a246ec9232d07cf754f9691feb7c9.tar.bz2
2006-12-06 Vladimir Prus <vladimir@codesourcery.com>
* varobj.c (cplus_value_of_child): When accessing base suboject, don't specially process references.
Diffstat (limited to 'gdb/varobj.c')
-rw-r--r--gdb/varobj.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/varobj.c b/gdb/varobj.c
index 309bd5e..a06aab8 100644
--- a/gdb/varobj.c
+++ b/gdb/varobj.c
@@ -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;