diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2009-07-07 09:26:13 +0000 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2009-07-07 09:26:13 +0000 |
commit | fd115a4b71c8d9f4315641b00f00acdb5c6ae4a0 (patch) | |
tree | 2a09a96faca9731f64713867d5ce29fb1a4da688 /gdb/mi/mi-cmd-var.c | |
parent | 187c4a2b7be39d56d38008039f2284715e3580a9 (diff) | |
download | gdb-fd115a4b71c8d9f4315641b00f00acdb5c6ae4a0.zip gdb-fd115a4b71c8d9f4315641b00f00acdb5c6ae4a0.tar.gz gdb-fd115a4b71c8d9f4315641b00f00acdb5c6ae4a0.tar.bz2 |
gdb/
* mi/mi-cmd-var.c (mi_cmd_var_update): Replace a while loop by for loop.
* varobj.c (varobj_invalidate): Replace a while loop by for loop.
Diffstat (limited to 'gdb/mi/mi-cmd-var.c')
-rw-r--r-- | gdb/mi/mi-cmd-var.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gdb/mi/mi-cmd-var.c b/gdb/mi/mi-cmd-var.c index 64a36bf..a7fea36 100644 --- a/gdb/mi/mi-cmd-var.c +++ b/gdb/mi/mi-cmd-var.c @@ -606,8 +606,7 @@ mi_cmd_var_update (char *command, char **argv, int argc) do_cleanups (cleanup); return; } - cr = rootlist; - while (*cr != NULL) + for (cr = rootlist; *cr != NULL; cr++) { int thread_id = varobj_get_thread_id (*cr); int thread_stopped = 0; @@ -624,7 +623,6 @@ mi_cmd_var_update (char *command, char **argv, int argc) if (thread_stopped) if (*name == '*' || varobj_floating_p (*cr)) varobj_update_one (*cr, print_values, 0 /* implicit */); - cr++; } do_cleanups (cleanup); } |