aboutsummaryrefslogtreecommitdiff
path: root/gdb
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
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')
-rw-r--r--gdb/ChangeLog11
-rw-r--r--gdb/ctfread.c2
-rw-r--r--gdb/dbxread.c2
-rw-r--r--gdb/dwarf2/read.c5
-rw-r--r--gdb/psympriv.h2
-rw-r--r--gdb/psymtab.c6
-rw-r--r--gdb/xcoffread.c2
7 files changed, 20 insertions, 10 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 4d4ba16..967317a 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,16 @@
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.
* dwarf2/read.c (dwarf2_build_psymtabs): Update.
* xcoffread.c (xcoff_initial_scan): Update.
diff --git a/gdb/ctfread.c b/gdb/ctfread.c
index 3c506dd..b8d8434 100644
--- a/gdb/ctfread.c
+++ b/gdb/ctfread.c
@@ -1464,7 +1464,7 @@ scan_partial_symbols (ctf_file_t *cfp, struct objfile *of)
0, language_c, of);
}
- end_psymtab_common (of, pst);
+ end_psymtab_common (pst);
}
/* Read CTF debugging information from a BFD section. This is
diff --git a/gdb/dbxread.c b/gdb/dbxread.c
index 4e189a7..f9ee007 100644
--- a/gdb/dbxread.c
+++ b/gdb/dbxread.c
@@ -2004,7 +2004,7 @@ dbx_end_psymtab (struct objfile *objfile, legacy_psymtab *pst,
/* 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)
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. */
diff --git a/gdb/psympriv.h b/gdb/psympriv.h
index 73077eb..53dfb1b 100644
--- a/gdb/psympriv.h
+++ b/gdb/psympriv.h
@@ -436,7 +436,7 @@ struct legacy_psymtab : public standard_psymtab
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,
diff --git a/gdb/psymtab.c b/gdb/psymtab.c
index 349c68e..b3deef41 100644
--- a/gdb/psymtab.c
+++ b/gdb/psymtab.c
@@ -1431,7 +1431,7 @@ const struct quick_symbol_functions psym_functions =
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 (),
@@ -1458,12 +1458,12 @@ partial_symtab::partial_symtab (const char *filename,
/* 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. */
diff --git a/gdb/xcoffread.c b/gdb/xcoffread.c
index 075ebee..3383032 100644
--- a/gdb/xcoffread.c
+++ b/gdb/xcoffread.c
@@ -2000,7 +2000,7 @@ xcoff_end_psymtab (struct objfile *objfile, legacy_psymtab *pst,
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)