From: Doug Evans Date: Wed, 19 Sep 2012 20:06:47 +0000 (+0000) Subject: * buildsym.h (param_symbols): Delete, unused. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=43c7c83dacecdb9a2796e4eed6f891ce3f8c3654;p=binutils-gdb.git * buildsym.h (param_symbols): Delete, unused. (context_stack): Delete member "params", unused. * buildsym.c (push_context): Update. * dwarf2read.c (read_func_scope): Update. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index c306d2c2837..d36c95e4cbf 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,10 @@ +2012-09-19 Doug Evans + + * buildsym.h (param_symbols): Delete, unused. + (context_stack): Delete member "params", unused. + * buildsym.c (push_context): Update. + * dwarf2read.c (read_func_scope): Update. + 2012-09-19 Thomas Schwinge * sh-tdep.c (sh_register_convert_to_virtual) diff --git a/gdb/buildsym.c b/gdb/buildsym.c index e4882fb7fce..1ce40b9d868 100644 --- a/gdb/buildsym.c +++ b/gdb/buildsym.c @@ -1404,14 +1404,12 @@ push_context (int desc, CORE_ADDR valu) new = &context_stack[context_stack_depth++]; new->depth = desc; new->locals = local_symbols; - new->params = param_symbols; new->old_blocks = pending_blocks; new->start_addr = valu; new->using_directives = using_directives; new->name = NULL; local_symbols = NULL; - param_symbols = NULL; using_directives = NULL; return new; diff --git a/gdb/buildsym.h b/gdb/buildsym.h index 33b34c8de94..0db96bf2f96 100644 --- a/gdb/buildsym.h +++ b/gdb/buildsym.h @@ -120,10 +120,6 @@ EXTERN struct pending *global_symbols; EXTERN struct pending *local_symbols; -/* func params local to lexical context */ - -EXTERN struct pending *param_symbols; - /* "using" directives local to lexical context. */ EXTERN struct using_direct *using_directives; @@ -137,10 +133,6 @@ struct context_stack struct pending *locals; - /* Pending func params at the time we entered */ - - struct pending *params; - /* Pending using directives at the time we entered. */ struct using_direct *using_directives; diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c index 0009ff810c9..758bd3bcbbf 100644 --- a/gdb/dwarf2read.c +++ b/gdb/dwarf2read.c @@ -8837,7 +8837,6 @@ read_func_scope (struct die_info *die, struct dwarf2_cu *cu) when we finish processing a function scope, we may need to go back to building a containing block's symbol lists. */ local_symbols = new->locals; - param_symbols = new->params; using_directives = new->using_directives; /* If we've finished processing a top-level function, subsequent