]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Remove cleanups from dbxread.c
authorTom Tromey <tom@tromey.com>
Fri, 25 May 2018 04:09:24 +0000 (22:09 -0600)
committerTom Tromey <tom@tromey.com>
Fri, 25 May 2018 19:08:55 +0000 (13:08 -0600)
commitbf259e253f0d27323756fb434ba6e94d50846021
tree324c5cad5dd9c58c11b715962a30c92e74855d1e
parentd525a99be1b02dda6c69007e31dd06f276378aea
Remove cleanups from dbxread.c

This removes the remaining cleanups from dbxread.c, via std::vector,
scoped_restore, and unique_xmalloc_ptr.

Tested by the buildbot.

ChangeLog
2018-05-25  Tom Tromey  <tom@tromey.com>

* dbxread.c (init_bincl_list): Remove.
(bincl_list): Now a std::vector.
(bincls_allocated, next_bincl): Remove.
(free_bincl_list, do_free_bincl_list_cleanup)
(make_cleanup_free_bincl_list): Remove.
(dbx_read_symtab, elfstab_build_psymtabs): Use scoped_restore,
unique_xmalloc_ptr.
(find_corresponding_bincl_psymtab, read_dbx_symtab): Update.
(struct header_file_location): Add constructor.
(add_bincl_to_list): Remove.
gdb/ChangeLog
gdb/dbxread.c