Simplify calls to init_psymbol_list
authorTom Tromey <tom@tromey.com>
Thu, 10 May 2018 22:23:47 +0000 (16:23 -0600)
committerTom Tromey <tom@tromey.com>
Thu, 10 Jan 2019 14:08:11 +0000 (07:08 -0700)
commit6eee24ce30f8e95335c2ad8586f9a64398eb2cd4
tree621616df26c1fd059c70b00ebdb83cd397ba8371
parent75aedd27e6a2c58734ab44cc7cad8491f19d059a
Simplify calls to init_psymbol_list

Existing callers to init_psymbol_list were checking to see if psymbols
had already been initialized.  It seemed better to me to do this check
directly in init_psymbol_list, simplifying the callers.

gdb/ChangeLog
2019-01-10  Tom Tromey  <tom@tromey.com>

* xcoffread.c (xcoff_initial_scan): Unconditionally call
init_psymbol_list.
* psymtab.c (init_psymbol_list): Do nothing if already called.
* psympriv.h (init_psymbol_list): Add comment.
* dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
init_psymbol_list.
* dbxread.c (dbx_symfile_read): Unconditionally call
init_psymbol_list.
gdb/ChangeLog
gdb/dbxread.c
gdb/dwarf2read.c
gdb/psympriv.h
gdb/psymtab.c
gdb/xcoffread.c