diff options
Diffstat (limited to 'gdb/varobj.c')
-rw-r--r-- | gdb/varobj.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gdb/varobj.c b/gdb/varobj.c index c3a159b..ef2499d 100644 --- a/gdb/varobj.c +++ b/gdb/varobj.c @@ -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; |