aboutsummaryrefslogtreecommitdiff
path: root/gdb/dwarf2/read.c
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:15 -0700
commitae7754b256f1f230baec364d90561c3ca34f7e64 (patch)
treece37e71c6106a8e4937f096cd688e1cd48565ab4 /gdb/dwarf2/read.c
parent0684bb51b5207aed1d76098ebaca6243f9c168e7 (diff)
downloadgdb-ae7754b256f1f230baec364d90561c3ca34f7e64.zip
gdb-ae7754b256f1f230baec364d90561c3ca34f7e64.tar.gz
gdb-ae7754b256f1f230baec364d90561c3ca34f7e64.tar.bz2
Change end_psymtab_common to a method
This changes end_psymtab_common to be a method on partial_symtab. This seems a little cleaner to me. gdb/ChangeLog 2020-11-01 Tom Tromey <tom@tromey.com> * dbxread.c (dbx_end_psymtab): Update. * dwarf2/read.c (process_psymtab_comp_unit_reader) (build_type_psymtabs_reader): Update. * xcoffread.c (xcoff_end_psymtab): Update. * ctfread.c (scan_partial_symbols): Update. * psymtab.c (sort_pst_symbols): Remove. (partial_symtab::end): Rename from end_psymtab_common. Inline sort_pst_symbols. * psympriv.h (struct partial_symtab) <end>: New method. (end_psymtab_common): Don't declare.
Diffstat (limited to 'gdb/dwarf2/read.c')
-rw-r--r--gdb/dwarf2/read.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/dwarf2/read.c b/gdb/dwarf2/read.c
index d3d88b1..19131da 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 (pst);
+ pst->end ();
if (!cu->per_cu->imported_symtabs_empty ())
{
@@ -7760,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 (pst);
+ pst->end ();
}
/* Struct used to sort TUs by their abbreviation table offset. */