2006-12-06 Vladimir Prus <vladimir@codesourcery.com>

* varobj.c (cplus_value_of_child): When accessing
        base suboject, don't specially process references.
This commit is contained in:
Vladimir Prus 2006-12-06 09:01:50 +00:00
parent 747ffa7b00
commit 4ae4f4fb15
2 changed files with 8 additions and 2 deletions

View 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.

View 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;