forked from Imagelibrary/binutils-gdb
gdb/
* varobj.c (varobj_update): Fix out of scope varobjs to not to change.
This commit is contained in:
@@ -1539,7 +1539,8 @@ VEC(varobj_update_result) *varobj_update (struct varobj **varp, int explicit)
|
||||
|
||||
if (r.status == VAROBJ_NOT_IN_SCOPE)
|
||||
{
|
||||
VEC_safe_push (varobj_update_result, result, &r);
|
||||
if (r.type_changed || r.changed)
|
||||
VEC_safe_push (varobj_update_result, result, &r);
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user