aboutsummaryrefslogtreecommitdiff
path: root/gdb/dwarf2read.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2018-05-21 00:41:21 -0600
committerTom Tromey <tom@tromey.com>2018-07-20 09:42:44 -0600
commitc233e9c641a84e69603bd94d0e85050c361b64a6 (patch)
treea5e28ff8624acf305258816c76499667e56f463e /gdb/dwarf2read.c
parent5ac045503de7dde6793b318f89d251addc161f66 (diff)
downloadgdb-c233e9c641a84e69603bd94d0e85050c361b64a6.zip
gdb-c233e9c641a84e69603bd94d0e85050c361b64a6.tar.gz
gdb-c233e9c641a84e69603bd94d0e85050c361b64a6.tar.bz2
Remove the "listhead" argument from finish_block
finish_block is only ever called with "&local_symbols" as the "listhead" argument. So, remove this argument. gdb/ChangeLog 2018-07-20 Tom Tromey <tom@tromey.com> * xcoffread.c (read_xcoff_symtab): Update. * dwarf2read.c (read_func_scope, read_lexical_block_scope): Update. * dbxread.c (process_one_symbol): Update. * coffread.c (coff_symtab_read): Update. * buildsym.h (finish_block): Update. * buildsym.c (finish_block): Remove "listhead" argument. (end_symtab_get_static_block): Update.
Diffstat (limited to 'gdb/dwarf2read.c')
-rw-r--r--gdb/dwarf2read.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c
index 62c87e6..e6a8a18 100644
--- a/gdb/dwarf2read.c
+++ b/gdb/dwarf2read.c
@@ -13685,7 +13685,7 @@ read_func_scope (struct die_info *die, struct dwarf2_cu *cu)
struct context_stack cstk = pop_context ();
/* Make a block for the local symbols within. */
- block = finish_block (cstk.name, &local_symbols, cstk.old_blocks,
+ block = finish_block (cstk.name, cstk.old_blocks,
cstk.static_link, lowpc, highpc);
/* For C++, set the block's scope. */
@@ -13781,7 +13781,7 @@ read_lexical_block_scope (struct die_info *die, struct dwarf2_cu *cu)
if (local_symbols != NULL || (*get_local_using_directives ()) != NULL)
{
struct block *block
- = finish_block (0, &local_symbols, cstk.old_blocks, NULL,
+ = finish_block (0, cstk.old_blocks, NULL,
cstk.start_addr, highpc);
/* Note that recording ranges after traversing children, as we