From 0b4bc29af388cd7c8dce57f5e216ad5276a1df3e Mon Sep 17 00:00:00 2001 From: Jan Kratochvil Date: Thu, 4 Jun 2009 21:56:22 +0000 Subject: [PATCH] gdb/ * varobj.c (varobj_update): Fix out of scope varobjs to not to change. --- gdb/ChangeLog | 4 ++++ gdb/varobj.c | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index dc4c1fb..966c8cf 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2009-06-04 Jan Kratochvil + + * varobj.c (varobj_update): Fix out of scope varobjs to not to change. + 2009-06-04 Ulrich Weigand * symtab.h: Rename SYMBOL_OPS to SYMBOL_COMPUTED_OPS. 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; } -- 2.7.4