aboutsummaryrefslogtreecommitdiff
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
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.
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/varobj.c5
2 files changed, 8 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index b26756f..fc4d21a 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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.
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;