Do not pass objfile to psymtab_discarder
authorTom Tromey <tom@tromey.com>
Sat, 20 Mar 2021 23:23:40 +0000 (17:23 -0600)
committerTom Tromey <tom@tromey.com>
Sat, 20 Mar 2021 23:23:42 +0000 (17:23 -0600)
commit484b1090630d273dfb70ee96b152ec6b527a1b65
tree0e0a8a9a6e33be2fb7d4dbca9ca632ef9735cca5
parent7e9c0476a7085cbebdc818d163d5c3bd46da6388
Do not pass objfile to psymtab_discarder

This changes the psymtab_discarder to not assume that partial symtabs
are attached to the objfile.  Instead, a psymtab_storage object is
passed directly to it.

gdb/ChangeLog
2021-03-20  Tom Tromey  <tom@tromey.com>

* psympriv.h (psymtab_discarder): Take psymtab_storage parameter.
(~psymtab_discarder, keep): Update.
<m_objfile>: Remove.
<m_partial_symtabs>: New member.
* dwarf2/read.c (dwarf2_build_psymtabs): Update.
gdb/ChangeLog
gdb/dwarf2/read.c
gdb/psympriv.h