From 06d5bbc8e5f7541b13509c33b8b3eb8afac27b2f Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Sun, 15 Oct 2017 11:23:22 -0600 Subject: 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 * 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 | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'gdb/ChangeLog') diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 81b70c15f7b..97fcde2196b 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,10 @@ +2017-10-20 Tom Tromey + + * gdb_bfd.c (gdb_bfd_ref): Use new. + (struct gdb_bfd_data): Add constructor, destructor, and member + initializers. + (gdb_bfd_unref): Use delete. + 2017-10-20 Tom Tromey * exec.c (exec_file_attach): Use new_bfd_ref. -- cgit v1.2.1