Replace really_free_pendings with a scoped_ class
authorTom Tromey <tom@tromey.com>
Fri, 20 Oct 2017 15:30:48 +0000 (09:30 -0600)
committerTom Tromey <tom@tromey.com>
Sat, 4 Nov 2017 16:27:15 +0000 (10:27 -0600)
commit33c7c59df060e9952fc2f608c3a6ff0a23ecd40d
treeeb6725ca4c4c70e816584cd479bc76a34e97031a
parentebe6dbc2645081e3a166865f057e7cc9643e7e12
Replace really_free_pendings with a scoped_ class

This introduces scoped_free_pendings, and changes users of
really_free_pendings to use it instead, removing some clenaups.

I tried to examine the affected code to ensure there aren't dangling
cleanups in the vicinity.

gdb/ChangeLog
2017-11-04  Tom Tromey  <tom@tromey.com>

* dwarf2read.c (process_full_comp_unit, process_full_type_unit):
Use scoped_free_pendings.
* dbxread.c (dbx_symfile_read, dbx_psymtab_to_symtab_1): Use
scoped_free_pendings.
* xcoffread.c (xcoff_psymtab_to_symtab_1): Use scoped_free_pendings.
(xcoff_initial_scan): Likewise.
* buildsym.c (reset_symtab_globals): Update comment.
(scoped_free_pendings): Rename from really_free_pendings.
(prepare_for_building): Update comment.
(buildsym_init): Likewise.
* buildsym.h (class scoped_free_pendings): New class.
(really_free_pendings): Don't declare.
gdb/ChangeLog
gdb/buildsym.c
gdb/buildsym.h
gdb/dbxread.c
gdb/dwarf2read.c
gdb/xcoffread.c
This page took 0.024615 seconds and 4 git commands to generate.