From c233e9c641a84e69603bd94d0e85050c361b64a6 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Mon, 21 May 2018 00:41:21 -0600 Subject: 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 * 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. --- gdb/dbxread.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gdb/dbxread.c') diff --git a/gdb/dbxread.c b/gdb/dbxread.c index b5cec28..e79d2a8 100644 --- a/gdb/dbxread.c +++ b/gdb/dbxread.c @@ -2516,7 +2516,7 @@ process_one_symbol (int type, int desc, CORE_ADDR valu, const char *name, cstk = pop_context (); /* Make a block for the local symbols within. */ - block = finish_block (cstk.name, &local_symbols, + block = finish_block (cstk.name, cstk.old_blocks, NULL, cstk.start_addr, cstk.start_addr + valu); @@ -2603,7 +2603,7 @@ process_one_symbol (int type, int desc, CORE_ADDR valu, const char *name, cstk.start_addr = valu; } /* Make a block for the local symbols within. */ - finish_block (0, &local_symbols, cstk.old_blocks, NULL, + finish_block (0, cstk.old_blocks, NULL, cstk.start_addr, valu); } } @@ -2890,7 +2890,7 @@ process_one_symbol (int type, int desc, CORE_ADDR valu, const char *name, cstk = pop_context (); /* Make a block for the local symbols within. */ - block = finish_block (cstk.name, &local_symbols, + block = finish_block (cstk.name, cstk.old_blocks, NULL, cstk.start_addr, valu); -- cgit v1.1