+2020-11-01 Tom Tromey <tom@tromey.com>
+
+ * dbxread.c (dbx_end_psymtab): Update.
+ * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
+ (build_type_psymtabs_reader): Update.
+ * xcoffread.c (xcoff_end_psymtab): Update.
+ * ctfread.c (scan_partial_symbols): Update.
+ * psympriv.h (end_psymtab_common): Update.
+ * psymtab.c (end_psymtab_common): Remove objfile parameter.
+ (sort_pst_symbols): Likewise.
+
2020-11-01 Tom Tromey <tom@tromey.com>
* dbxread.c (dbx_symfile_read): Update.
0, language_c, of);
}
- end_psymtab_common (of, pst);
+ end_psymtab_common (pst);
}
/* Read CTF debugging information from a BFD section. This is
/* End of kludge for patching Solaris textlow and texthigh. */
- end_psymtab_common (objfile, pst);
+ end_psymtab_common (pst);
pst->number_of_dependencies = number_dependencies;
if (number_dependencies)
best_highpc + baseaddr)
- baseaddr);
- end_psymtab_common (objfile, pst);
+ end_psymtab_common (pst);
if (!cu->per_cu->imported_symtabs_empty ())
{
struct die_info *type_unit_die)
{
dwarf2_per_objfile *per_objfile = reader->cu->per_objfile;
- struct objfile *objfile = per_objfile->objfile;
struct dwarf2_cu *cu = reader->cu;
struct dwarf2_per_cu_data *per_cu = cu->per_cu;
struct signatured_type *sig_type;
highpc = (CORE_ADDR) 0;
scan_partial_symbols (first_die, &lowpc, &highpc, 0, cu);
- end_psymtab_common (objfile, pst);
+ end_psymtab_common (pst);
}
/* Struct used to sort TUs by their abbreviation table offset. */
void *read_symtab_private = nullptr;
};
-extern void end_psymtab_common (struct objfile *, struct partial_symtab *);
+extern void end_psymtab_common (struct partial_symtab *);
/* Used when recording partial symbol tables. On destruction,
discards any partial symbol tables that have been built. However,
\f
static void
-sort_pst_symbols (struct objfile *objfile, struct partial_symtab *pst)
+sort_pst_symbols (struct partial_symtab *pst)
{
/* Sort the global list; don't sort the static list. */
std::sort (pst->global_psymbols.begin (),
/* Perform "finishing up" operations of a partial symtab. */
void
-end_psymtab_common (struct objfile *objfile, struct partial_symtab *pst)
+end_psymtab_common (struct partial_symtab *pst)
{
pst->global_psymbols.shrink_to_fit ();
pst->static_psymbols.shrink_to_fit ();
- sort_pst_symbols (objfile, pst);
+ sort_pst_symbols (pst);
}
/* See psymtab.h. */
first_fun_line_offset;
first_fun_line_offset = 0;
- end_psymtab_common (objfile, pst);
+ end_psymtab_common (pst);
pst->number_of_dependencies = number_dependencies;
if (number_dependencies)