mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-21 01:12:32 +08:00
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:
parent
747ffa7b00
commit
4ae4f4fb15
@ -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.
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user