From 60d329700d212c73c43d1edf0f4b958166e551e5 Mon Sep 17 00:00:00 2001 From: Vladimir Prus Date: Tue, 7 Jul 2009 08:51:31 +0000 Subject: [PATCH] Fix hang in floating varobjs. * varob.c (varobj_invalidate): Advance to next element when processing floating varobj. --- gdb/ChangeLog | 7 +++++++ gdb/varobj.c | 4 +++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 27f3a2b73b7..d3d25d8b8ee 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,10 @@ +2009-07-07 Vladimir Prus + + Fix hang in floating varobjs. + + * varob.c (varobj_invalidate): Advance to next + element when processing floating varobj. + 2009-07-07 Vladimir Prus * varobj.c: Remove unnecessary include. diff --git a/gdb/varobj.c b/gdb/varobj.c index a025518feab..e8463622e8e 100644 --- a/gdb/varobj.c +++ b/gdb/varobj.c @@ -3231,8 +3231,10 @@ varobj_invalidate (void) /* Floating varobjs are reparsed on each stop, so we don't care if the presently parsed expression refers to something that's gone. */ - if ((*varp)->root->floating) + if ((*varp)->root->floating) { + varp++; continue; + } /* global var must be re-evaluated. */ if ((*varp)->root->valid_block == NULL) -- 2.30.2