This is the mail archive of the
gdb-testers@sourceware.org
mailing list for the GDB project.
[binutils-gdb] Introduce new_bfd_ref
- From: sergiodj+buildbot at sergiodj dot net
- To: gdb-testers at sourceware dot org
- Date: Fri, 20 Oct 2017 12:28:35 -0400
- Subject: [binutils-gdb] Introduce new_bfd_ref
- Authentication-results: sourceware.org; auth=none
*** TEST RESULTS FOR COMMIT 2712ce2e659f82168154d4533f53d2963ae82571 ***
Author: Tom Tromey <tom@tromey.com>
Branch: master
Commit: 2712ce2e659f82168154d4533f53d2963ae82571
Introduce new_bfd_ref
This introduces a helper function, new_bfd_ref, that calls gdb_bfd_ref
and returns a gdb_bfd_ref_ptr. Then it updates several places to use
this.
ChangeLog
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)
(gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_fdopenr): Use
new_bfd_ref.
* gdb_bfd.h (new_bfd_ref): New function.