]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Use "new" to allocate gdb_bfd_data
authorTom Tromey <tom@tromey.com>
Sun, 15 Oct 2017 17:23:22 +0000 (11:23 -0600)
committerTom Tromey <tom@tromey.com>
Fri, 20 Oct 2017 15:01:03 +0000 (09:01 -0600)
commit06d5bbc8e5f7541b13509c33b8b3eb8afac27b2f
tree6dfe5319761dc96ababebf2d396d1d75c31535c4
parent2712ce2e659f82168154d4533f53d2963ae82571
Use "new" to allocate gdb_bfd_data

This changes gdb_bfd_data to be allocated with new and destroyed with
delete.

ChangeLog
2017-10-20  Tom Tromey  <tom@tromey.com>

* gdb_bfd.c (gdb_bfd_ref): Use new.
(struct gdb_bfd_data): Add constructor, destructor, and member
initializers.
(gdb_bfd_unref): Use delete.
gdb/ChangeLog
gdb/gdb_bfd.c