Simplify setting of reading_partial_symbols
authorTom Tromey <tom@tromey.com>
Mon, 24 Feb 2020 22:50:57 +0000 (15:50 -0700)
committerTom Tromey <tom@tromey.com>
Mon, 24 Feb 2020 22:50:57 +0000 (15:50 -0700)
commit7693576838f4fe66b2a2380425b5ad950c671b34
tree856f7ac09f04d833f8826d69ddd431e9bd84c901
parente56d7f1e194d09180469548d7ebb3726f1af22ab
Simplify setting of reading_partial_symbols

This simplifies the setting and clearing of reading_partial_symbols,
by using scoped_restore in the function that reads partial symbols.

gdb/ChangeLog
2020-02-24  Tom Tromey  <tom@tromey.com>

* dwarf2read.c (dwarf2_build_psymtabs_hard): Use
make_scoped_restore.
(dwarf2_psymtab::read_symtab): Don't clear
reading_partial_symbols.
gdb/ChangeLog
gdb/dwarf2/read.c