* varobj.c (cplus_value_of_child): Deal with a failure
to dereference a pointer object.
This commit is contained in:
parent
08da05b004
commit
4abb499edb
@ -1,3 +1,8 @@
|
||||
2001-10-10 Keith Seitz <keiths@redhat.com>
|
||||
|
||||
* varobj.c (cplus_value_of_child): Deal with a failure
|
||||
to dereference a pointer object.
|
||||
|
||||
2001-10-08 J. Brobecker <brobecker@gnat.com>
|
||||
|
||||
* hpux-thread.c: rewrite find_active_thread() and find_tcb()
|
||||
|
@ -2313,7 +2313,10 @@ cplus_value_of_child (struct varobj *parent, int index)
|
||||
|
||||
if (TYPE_CODE (VALUE_TYPE (parent->value)) == TYPE_CODE_PTR
|
||||
|| TYPE_CODE (VALUE_TYPE (parent->value)) == TYPE_CODE_REF)
|
||||
gdb_value_ind (parent->value, &temp);
|
||||
{
|
||||
if (!gdb_value_ind (parent->value, &temp))
|
||||
return NULL;
|
||||
}
|
||||
else
|
||||
temp = parent->value;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user