aboutsummaryrefslogtreecommitdiff
path: root/gdb/varobj.c
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2009-06-04 21:56:22 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2009-06-04 21:56:22 +0000
commit0b4bc29af388cd7c8dce57f5e216ad5276a1df3e (patch)
treef174f63e35cf8a0937626d40ebaeb0329f74fee9 /gdb/varobj.c
parent1dcd334d3410582f4b894b167eda0bd2084952d3 (diff)
downloadgdb-0b4bc29af388cd7c8dce57f5e216ad5276a1df3e.zip
gdb-0b4bc29af388cd7c8dce57f5e216ad5276a1df3e.tar.gz
gdb-0b4bc29af388cd7c8dce57f5e216ad5276a1df3e.tar.bz2
gdb/
* varobj.c (varobj_update): Fix out of scope varobjs to not to change.
Diffstat (limited to 'gdb/varobj.c')
-rw-r--r--gdb/varobj.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/varobj.c b/gdb/varobj.c
index ca698dc..6d646c1 100644
--- a/gdb/varobj.c
+++ b/gdb/varobj.c
@@ -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;
}