]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gdb/ChangeLog
Use new and delete for psymtabs
authorTom Tromey <tom@tromey.com>
Wed, 16 Oct 2019 20:06:43 +0000 (14:06 -0600)
committerTom Tromey <tom@tromey.com>
Sun, 26 Jan 2020 23:40:20 +0000 (16:40 -0700)
commit6f17252b76dbe8bedd32b6df6ce52af707bfb04b
tree57515b3759448d0f1ab318cb89233e3e82ca553b
parentf6f1cebcbe4dd33cdd65094267cc33395d55ece7
Use new and delete for psymtabs

This changes psymtabs to be allocated with new and destroyed with
delete.  As a consequence, the psymtab free-list is also removed.

The motivation for this is to let symbol readers subclass
partial_symtab.

gdb/ChangeLog
2020-01-26  Tom Tromey  <tom@tromey.com>

* mdebugread.c (parse_partial_symbols): Use discard_psymtab.
* psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
* psymtab.c (psymtab_storage): Delete psymtabs.
(psymtab_storage::allocate_psymtab): Use new.
(psymtab_storage::discard_psymtab): Use delete.
* psympriv.h (struct partial_symtab): Add constructor and
initializers.

Change-Id: I4e78ac538fc0ea52b57489c1afb8f935a30941ef
gdb/ChangeLog
gdb/mdebugread.c
gdb/psympriv.h
gdb/psymtab.c
gdb/psymtab.h