diff options
author | Andrew Cagney <cagney@redhat.com> | 2004-01-20 21:47:53 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2004-01-20 21:47:53 +0000 |
commit | bc1d0316832d9d9ac43784e877301d65a502c894 (patch) | |
tree | 04dc422277482ffdaa21e17731bc25b563686fea /gdb/mi | |
parent | f67397364be6f85dfa7f8139c42e722da0a3e2a0 (diff) | |
download | gdb-bc1d0316832d9d9ac43784e877301d65a502c894.tar.gz |
2004-01-20 Andrew Cagney <cagney@redhat.com>
* mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
sym2 to start of block.
Diffstat (limited to 'gdb/mi')
-rw-r--r-- | gdb/mi/mi-cmd-stack.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/mi/mi-cmd-stack.c b/gdb/mi/mi-cmd-stack.c index af967858180..9a2a9ec1a2e 100644 --- a/gdb/mi/mi-cmd-stack.c +++ b/gdb/mi/mi-cmd-stack.c @@ -286,12 +286,12 @@ list_args_or_locals (int locals, int values, struct frame_info *fi) if (print_me) { struct cleanup *cleanup_tuple = NULL; + struct symbol *sym2; if (values != PRINT_NO_VALUES) cleanup_tuple = make_cleanup_ui_out_tuple_begin_end (uiout, NULL); ui_out_field_string (uiout, "name", SYMBOL_PRINT_NAME (sym)); - struct symbol *sym2; if (!locals) sym2 = lookup_symbol (SYMBOL_NATURAL_NAME (sym), block, VAR_DOMAIN, |