Remove cleanups from coffread.c
authorTom Tromey <tom@tromey.com>
Sun, 19 Aug 2018 17:50:44 +0000 (11:50 -0600)
committerTom Tromey <tom@tromey.com>
Wed, 6 Mar 2019 21:04:44 +0000 (14:04 -0700)
commite2a035485a80651a5dc1711fee5a811e41ab131b
tree2251bab83082ab097d40ed205e0809fb5be1d185
parentb7e60d85da12a1819671473db8550c9f076e8f38
Remove cleanups from coffread.c

This removes the remaining cleanups from coffread.c.

Tested by the buildbot and also some manual testing.

This version includes the fix provided by Joel.

gdb/ChangeLog
2019-03-06  Joel Brobecker  <brobecker@adacore.com>
    Tom Tromey  <tom@tromey.com>

* stabsread.h (struct stab_section_list): Remove.
(coffstab_build_psymtabs): Update.
* dbxread.c (symbuf_sections): Now a std::vector.
(sect_idx): New global.
(fill_symbuf): Update.
(coffstab_build_psymtabs): Change type of stabsects parameter.
Update.
* coffread.c (struct coff_symfile_info) <stabsects>: Now a
std::vector.
(linetab, linetab_offset, linetab_size, stringtab): Move earlier.
(coff_locate_sections): Update.
(coff_symfile_read): Remove cleanups.  Update.
(init_stringtab): Add storage parameter.
(free_stringtab, free_stringtab_cleanup): Remove.
(init_lineno): Add storage parameter.
(free_linetab, free_linetab_cleanup): Remove.
gdb/ChangeLog
gdb/coffread.c
gdb/dbxread.c
gdb/stabsread.h