From 5a413362ba31657af57ca223df47809344d2532e Mon Sep 17 00:00:00 2001 From: Vladimir Prus Date: Wed, 26 Mar 2008 14:51:28 +0000 Subject: * 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. --- gdb/mi/mi-cmd-var.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'gdb/mi') diff --git a/gdb/mi/mi-cmd-var.c b/gdb/mi/mi-cmd-var.c index dc873ca..301126d 100644 --- a/gdb/mi/mi-cmd-var.c +++ b/gdb/mi/mi-cmd-var.c @@ -558,7 +558,7 @@ mi_cmd_var_update (char *command, char **argv, int argc) /* Check if the parameter is a "*" which means that we want to update all variables */ - if ((*name == '*') && (*(name + 1) == '\0')) + if ((*name == '*' || *name == '@') && (*(name + 1) == '\0')) { nv = varobj_list (&rootlist); cleanup = make_cleanup (xfree, rootlist); @@ -574,7 +574,8 @@ mi_cmd_var_update (char *command, char **argv, int argc) cr = rootlist; while (*cr != NULL) { - varobj_update_one (*cr, print_values, 0 /* implicit */); + if (*name == '*' || varobj_floating_p (*cr)) + varobj_update_one (*cr, print_values, 0 /* implicit */); cr++; } do_cleanups (cleanup); -- cgit v1.1