* 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.
This commit is contained in:
Vladimir Prus
2008-03-26 14:51:28 +00:00
parent b21c9cb440
commit 5a413362ba
4 changed files with 22 additions and 3 deletions

View File

@ -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.