Introduce new_bfd_ref
authorTom Tromey <tom@tromey.com>
Sun, 15 Oct 2017 17:13:29 +0000 (11:13 -0600)
committerTom Tromey <tom@tromey.com>
Fri, 20 Oct 2017 15:01:03 +0000 (09:01 -0600)
commit2712ce2e659f82168154d4533f53d2963ae82571
tree99edd1b85f5c282622f27a25a5411abeb657c7ef
parent15763a09d4aea85fc3153d6746c040dd48565637
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.
gdb/ChangeLog
gdb/exec.c
gdb/gdb_bfd.c
gdb/gdb_bfd.h
gdb/symfile-mem.c
This page took 0.026548 seconds and 4 git commands to generate.