aboutsummaryrefslogtreecommitdiff
path: root/gdb/dwarf2
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2020-11-01 09:51:13 -0700
committerTom Tromey <tom@tromey.com>2020-11-01 09:51:14 -0700
commit089002bba03cf3f546dd63f98e763254ae04d7c1 (patch)
treeff2450850309dba7c5282bc389e8619f117801fe /gdb/dwarf2
parent525454d654a88a40148e8d3558c69179def61fbf (diff)
downloadgdb-089002bba03cf3f546dd63f98e763254ae04d7c1.zip
gdb-089002bba03cf3f546dd63f98e763254ae04d7c1.tar.gz
gdb-089002bba03cf3f546dd63f98e763254ae04d7c1.tar.bz2
Remove parameter from end_psymtab_common
The objfile parameter to end_psymtab_common is no longer needed, so this removes it. gdb/ChangeLog 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.
Diffstat (limited to 'gdb/dwarf2')
-rw-r--r--gdb/dwarf2/read.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/gdb/dwarf2/read.c b/gdb/dwarf2/read.c
index aeb6280..d3d88b1 100644
--- a/gdb/dwarf2/read.c
+++ b/gdb/dwarf2/read.c
@@ -7634,7 +7634,7 @@ process_psymtab_comp_unit_reader (const struct die_reader_specs *reader,
best_highpc + baseaddr)
- baseaddr);
- end_psymtab_common (objfile, pst);
+ end_psymtab_common (pst);
if (!cu->per_cu->imported_symtabs_empty ())
{
@@ -7728,7 +7728,6 @@ build_type_psymtabs_reader (const struct die_reader_specs *reader,
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;
@@ -7761,7 +7760,7 @@ build_type_psymtabs_reader (const struct die_reader_specs *reader,
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. */