dwarf2read: Make dwo_file::dbfd a gdb_bfd_ref_ptr
authorSimon Marchi <simon.marchi@polymtl.ca>
Fri, 21 Jun 2019 18:10:57 +0000 (14:10 -0400)
committerSimon Marchi <simon.marchi@efficios.com>
Fri, 21 Jun 2019 18:11:13 +0000 (14:11 -0400)
commitfb1eb2f94a62813ab3daa34da59c035717ffb9da
tree56fad8e196e3e57f5f773d5a6e035676806f748c
parent51ac9db596ea9f0affa9f7db25bb179cf70beac4
dwarf2read: Make dwo_file::dbfd a gdb_bfd_ref_ptr

This removes the manual call to gdb_bfd_ref in favor of gdb_bfd_ref_ptr.

gdb/ChangeLog:

* dwarf2read.c (struct dwo_file) <dbfd>: Change type to
gdb_bfd_ref_ptr.
<~dwo_file>: Remove call to gdb_bfd_unref.
(open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
gdb_bfd_ref_ptr::get.
gdb/ChangeLog
gdb/dwarf2read.c