+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.
+
2018-07-20 Tom Tromey <tom@tromey.com>
* buildsym.h (class scoped_free_pendings): Remove constructor.
struct block *
finish_block (struct symbol *symbol,
- struct pending **listhead,
struct pending_block *old_blocks,
const struct dynamic_prop *static_link,
CORE_ADDR start, CORE_ADDR end)
{
- return finish_block_internal (symbol, listhead, old_blocks, static_link,
+ return finish_block_internal (symbol, &local_symbols, old_blocks, static_link,
start, end, 0, 0);
}
struct context_stack cstk = pop_context ();
/* Make a block for the local symbols within. */
- finish_block (cstk.name, &local_symbols, cstk.old_blocks, NULL,
+ finish_block (cstk.name, cstk.old_blocks, NULL,
cstk.start_addr, end_addr);
if (!buildsym_compunit->m_context_stack.empty ())
char *name, int length);
extern struct block *finish_block (struct symbol *symbol,
- struct pending **listhead,
struct pending_block *old_blocks,
const struct dynamic_prop *static_link,
CORE_ADDR start,
enter_linenos (fcn_line_ptr, fcn_first_line,
fcn_last_line, objfile);
- finish_block (cstk.name, &local_symbols, cstk.old_blocks,
+ finish_block (cstk.name, cstk.old_blocks,
NULL, cstk.start_addr,
fcn_cs_saved.c_value
+ fcn_aux_saved.x_sym.x_misc.x_fsize
cs->c_value + ANOFFSET (objfile->section_offsets,
SECT_OFF_TEXT (objfile));
/* 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, tmpaddr);
}
/* Now pop locals of block just finished. */
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);
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);
}
}
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);
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. */
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
break;
}
- finish_block (cstk.name, &local_symbols, cstk.old_blocks,
+ finish_block (cstk.name, cstk.old_blocks,
NULL, cstk.start_addr,
(fcn_cs_saved.c_value
+ fcn_aux_saved.x_sym.x_misc.x_fsize
if (local_symbols && !outermost_context_p ())
{
/* Make a block for the local symbols within. */
- finish_block (cstk.name, &local_symbols,
+ finish_block (cstk.name,
cstk.old_blocks, NULL,
cstk.start_addr,
(cs->c_value