aboutsummaryrefslogtreecommitdiff
path: root/gdb/varobj.c
diff options
context:
space:
mode:
authorVladimir Prus <vladimir@codesourcery.com>2008-03-26 14:51:28 +0000
committerVladimir Prus <vladimir@codesourcery.com>2008-03-26 14:51:28 +0000
commit5a413362ba31657af57ca223df47809344d2532e (patch)
treed69aed3ff648c23d31ce9141abfcdc47361acb3d /gdb/varobj.c
parentb21c9cb44026744541fb5e8f8ede89c6c2220c6d (diff)
downloadgdb-5a413362ba31657af57ca223df47809344d2532e.zip
gdb-5a413362ba31657af57ca223df47809344d2532e.tar.gz
gdb-5a413362ba31657af57ca223df47809344d2532e.tar.bz2
* varobj.h (varobj_floating_p): Declare.
* varobj.c (varobj_floating_p): New. * mi/mi-cmd-var.c (mi_cmd_var_update): When passed '@' as the name, update all floating varobjs.
Diffstat (limited to 'gdb/varobj.c')
-rw-r--r--gdb/varobj.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/gdb/varobj.c b/gdb/varobj.c
index 56f3726..3e75507 100644
--- a/gdb/varobj.c
+++ b/gdb/varobj.c
@@ -1868,6 +1868,15 @@ varobj_value_is_changeable_p (struct varobj *var)
return r;
}
+/* Return 1 if that varobj is floating, that is is always evaluated in the
+ selected frame, and not bound to thread/frame. Such variable objects
+ are created using '@' as frame specifier to -var-create. */
+int
+varobj_floating_p (struct varobj *var)
+{
+ return var->root->floating;
+}
+
/* Given the value and the type of a variable object,
adjust the value and type to those necessary
for getting children of the variable object.