diff options
author | Doug Evans <xdje42@gmail.com> | 2015-08-15 16:46:20 -0700 |
---|---|---|
committer | Doug Evans <xdje42@gmail.com> | 2015-08-15 16:46:20 -0700 |
commit | 8763cedeec7f0a1daea41c2231bda165652e273b (patch) | |
tree | 9ae1bd73d9b1b1883e2664e8e38603d6dcbdbd7f /gdb/xcoffread.c | |
parent | 51cdc99310171d6c53d2d00103a0ce34374d0b9b (diff) | |
download | gdb-8763cedeec7f0a1daea41c2231bda165652e273b.zip gdb-8763cedeec7f0a1daea41c2231bda165652e273b.tar.gz gdb-8763cedeec7f0a1daea41c2231bda165652e273b.tar.bz2 |
Add end_psymtab_common, have all debug info readers call it.
gdb/ChangeLog:
* dbxread.c (dbx_end_psymtab): Renamed from end_psymtab. All callers
updated. Call end_psymtab_common.
* dwarf2read.c (process_psymtab_comp_unit_reader): Call
end_psymtab_common.
(build_type_psymtabs_reader): Ditto.
* psympriv.h (sort_pst_symbols): Delete.
(end_psymtab_common): Declare.
* psymtab.c (sort_pst_symbols): Make static.
(end_psymtab_common): New function.
* xcoffread.c (xcoff_end_psymtab): Call end_psymtab_common.
Diffstat (limited to 'gdb/xcoffread.c')
-rw-r--r-- | gdb/xcoffread.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/gdb/xcoffread.c b/gdb/xcoffread.c index b5b2a1d..5940ec9 100644 --- a/gdb/xcoffread.c +++ b/gdb/xcoffread.c @@ -2057,10 +2057,8 @@ xcoff_end_psymtab (struct objfile *objfile, struct partial_symtab *pst, ((struct symloc *) pst->read_symtab_private)->lineno_off = first_fun_line_offset; first_fun_line_offset = 0; - pst->n_global_syms = objfile->global_psymbols.next - - (objfile->global_psymbols.list + pst->globals_offset); - pst->n_static_syms = objfile->static_psymbols.next - - (objfile->static_psymbols.list + pst->statics_offset); + + end_psymtab_common (objfile, pst); pst->number_of_dependencies = number_dependencies; if (number_dependencies) @@ -2104,8 +2102,6 @@ xcoff_end_psymtab (struct objfile *objfile, struct partial_symtab *pst, subpst->read_symtab = pst->read_symtab; } - sort_pst_symbols (objfile, pst); - if (num_includes == 0 && number_dependencies == 0 && pst->n_global_syms == 0 |