Remove make_cleanup_discard_psymtabs
authorTom Tromey <tom@tromey.com>
Mon, 21 Nov 2016 23:50:20 +0000 (16:50 -0700)
committerTom Tromey <tom@tromey.com>
Wed, 11 Jan 2017 02:14:12 +0000 (19:14 -0700)
commit906768f970826102252e8cfd30ee72da71de29f7
tree638e59e15edbea5651e05a0d8739ede2b2276188
parentbef155c3e8a995fcdb1c2ba5aba012eb653d9f30
Remove make_cleanup_discard_psymtabs

This removes make_cleanup_discard_psymtabs in favor of a new class.

2017-01-10  Tom Tromey  <tom@tromey.com>

* dwarf2read.c (dwarf2_build_psymtabs): Use psymtab_discarder.
* psympriv.h (make_cleanup_discard_psymtabs): Don't declare.
* psymtab.c (discard_psymtabs_upto): Remove.
(make_cleanup_discard_psymtabs): Remove.
(struct psymtab_state): Remove.
gdb/ChangeLog
gdb/dwarf2read.c
gdb/psympriv.h
gdb/psymtab.c