diff options
author | Vladimir Prus <vladimir@codesourcery.com> | 2008-03-26 14:51:28 +0000 |
---|---|---|
committer | Vladimir Prus <vladimir@codesourcery.com> | 2008-03-26 14:51:28 +0000 |
commit | a2f25a060d0e2f17f3df867a794eda2aa18d90ce (patch) | |
tree | 14bec935342996241d3586414808b60b77579884 /gdb/mi | |
parent | 8f073da084f7a98e663ef07d831ddbd4f833f2b4 (diff) | |
download | gdb-a2f25a060d0e2f17f3df867a794eda2aa18d90ce.tar.gz |
* 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/mi')
-rw-r--r-- | gdb/mi/mi-cmd-var.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/mi/mi-cmd-var.c b/gdb/mi/mi-cmd-var.c index dc873cacc43..301126d91a9 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); |