diff options
Diffstat (limited to 'gdb/varobj.c')
-rw-r--r-- | gdb/varobj.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/varobj.c b/gdb/varobj.c index b27013c8b66..f3d3b5abef6 100644 --- a/gdb/varobj.c +++ b/gdb/varobj.c @@ -2773,6 +2773,11 @@ varobj_invalidate (void) varp = all_rootvarobj; while (*varp != NULL) { + /* 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) + continue; + /* global var must be re-evaluated. */ if ((*varp)->root->valid_block == NULL) { |