This is the mail archive of the
gdb-testers@sourceware.org
mailing list for the GDB project.
[binutils-gdb] Remove free_dwo_file_cleanup
- From: sergiodj+buildbot at sergiodj dot net
- To: gdb-testers at sourceware dot org
- Date: Fri, 30 Mar 2018 17:01:27 -0400
- Subject: [binutils-gdb] Remove free_dwo_file_cleanup
*** TEST RESULTS FOR COMMIT 263db9a1f4105b76ddf00829d50430ea0a3bcba6 ***
Author: Tom Tromey <tom@tromey.com>
Branch: master
Commit: 263db9a1f4105b76ddf00829d50430ea0a3bcba6
Remove free_dwo_file_cleanup
This removes free_dwo_file_cleanup, the last cleanup in dwarf2read.c.
This is replaced with a unique_ptr; which, despite the fact that a
dwo_file is obstack-allocated, seemed like the best fit.
gdb/ChangeLog
2018-03-30 Tom Tromey <tom@tromey.com>
* dwarf2read.c (struct free_dwo_file_cleanup_data): Remove.
(struct dwo_file_deleter): New.
(dwo_file_up): New typedef.
(open_and_init_dwo_file): Use dwo_file_up.
(free_dwo_file_cleanup): Remove.