diff options
author | Tom Tromey <tom@tromey.com> | 2017-10-15 11:23:22 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2017-10-20 09:01:03 -0600 |
commit | 06d5bbc8e5f7541b13509c33b8b3eb8afac27b2f (patch) | |
tree | 6dfe5319761dc96ababebf2d396d1d75c31535c4 /gdb/ChangeLog | |
parent | 2712ce2e659f82168154d4533f53d2963ae82571 (diff) | |
download | binutils-gdb-06d5bbc8e5f7541b13509c33b8b3eb8afac27b2f.tar.gz |
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.
Diffstat (limited to 'gdb/ChangeLog')
-rw-r--r-- | gdb/ChangeLog | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 81b70c15f7b..97fcde2196b 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,12 @@ 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. + +2017-10-20 Tom Tromey <tom@tromey.com> + * exec.c (exec_file_attach): Use new_bfd_ref. * symfile-mem.c (symbol_file_add_from_memory): Use new_bfd_ref. * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr) |