Fix hang in floating varobjs.
authorVladimir Prus <vladimir@codesourcery.com>
Tue, 7 Jul 2009 08:51:31 +0000 (08:51 +0000)
committerVladimir Prus <vladimir@codesourcery.com>
Tue, 7 Jul 2009 08:51:31 +0000 (08:51 +0000)
* varob.c (varobj_invalidate): Advance to next
element when processing floating varobj.

gdb/ChangeLog
gdb/varobj.c

index 27f3a2b73b776a3e6cbe86b9fd1dec57a926874d..d3d25d8b8eec26dafe6a75d785d154fdb8089163 100644 (file)
@@ -1,3 +1,10 @@
+2009-07-07  Vladimir Prus  <vladimir@codesourcery.com>
+
+       Fix hang in floating varobjs.
+
+       * varob.c (varobj_invalidate): Advance to next
+       element when processing floating varobj.
+
 2009-07-07  Vladimir Prus  <vladimir@codesourcery.com>
 
        * varobj.c: Remove unnecessary include.
index a025518feab120bbee62ba3406845a144a845b2c..e8463622e8e9551b6834368d0fde3e60a5fea3ea 100644 (file)
@@ -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)