aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2004-01-20 21:47:53 +0000
committerAndrew Cagney <cagney@redhat.com>2004-01-20 21:47:53 +0000
commit6bb0384f7ca5b2e5ad6a3cf0a676dfa3528d7a4a (patch)
tree89fe58d5ed51755ac5606af66cefd063bf5ae7f5
parent4d8907ac12142818530c77b52d39d50bcf9931c5 (diff)
downloadgdb-6bb0384f7ca5b2e5ad6a3cf0a676dfa3528d7a4a.zip
gdb-6bb0384f7ca5b2e5ad6a3cf0a676dfa3528d7a4a.tar.gz
gdb-6bb0384f7ca5b2e5ad6a3cf0a676dfa3528d7a4a.tar.bz2
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.
-rw-r--r--gdb/ChangeLog8
-rw-r--r--gdb/mi/mi-cmd-stack.c2
2 files changed, 8 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index efc0f57..e69c38a 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+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.
+
2004-01-19 Michael Chastain <mec.gnu@mindspring.com>
* MAINTAINERS: Delete mmalloc.
@@ -6,7 +11,8 @@
* acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
* config.in: Regenerate.
* configure: Regenerate.
- * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc, USE_MMALLOC, MMCHECK_FORCE.
+ * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
+ USE_MMALLOC, MMCHECK_FORCE.
* gdbinit.in: Remove mmalloc.
* utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
* config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
diff --git a/gdb/mi/mi-cmd-stack.c b/gdb/mi/mi-cmd-stack.c
index af96785..9a2a9ec 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,