Change program_space::ebfd to a gdb_bfd_ref_ptr
authorTom Tromey <tom@tromey.com>
Thu, 29 Oct 2020 21:04:33 +0000 (15:04 -0600)
committerTom Tromey <tom@tromey.com>
Thu, 29 Oct 2020 21:04:37 +0000 (15:04 -0600)
commit19f6550ebbc922f88026c5c7ebeb04019d47cac2
treef91c94262757e994e4074118d041bae0a687e94b
parent7e10abd146dbd17dc1b4e9701210e5724df2b2b0
Change program_space::ebfd to a gdb_bfd_ref_ptr

This changes program_space::ebfd to a gdb_bfd_ref_ptr, removing some
manual management.

gdb/ChangeLog
2020-10-29  Tom Tromey  <tom@tromey.com>

* exec.c (exec_file_attach): Update.
* progspace.c (program_space::exec_close): Update.
* progspace.h (struct program_space) <ebfd>: Now a
gdb_bfd_ref_ptr.
<set_exec_bfd>: Change argument type.
<exec_bfd>: Update.
gdb/ChangeLog
gdb/exec.c
gdb/progspace.c
gdb/progspace.h