From: Vladimir Prus Date: Tue, 7 Jul 2009 08:51:31 +0000 (+0000) Subject: Fix hang in floating varobjs. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=60d329700d212c73c43d1edf0f4b958166e551e5;p=binutils-gdb.git Fix hang in floating varobjs. * varob.c (varobj_invalidate): Advance to next element when processing floating varobj. --- 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)