Use gdb_bfd_ref_ptr in target_bfd
authorTom Tromey <tom@tromey.com>
Fri, 4 May 2018 16:17:52 +0000 (10:17 -0600)
committerTom Tromey <tom@tromey.com>
Fri, 4 May 2018 18:10:43 +0000 (12:10 -0600)
commitade72a3453670d518ba14fe47bc7a64df81ce766
tree4482952670602339931d019c8f03afe6144a5ca8
parent2be4d7f0e0f733ba0acc2120fdff62bd83fb8b3a
Use gdb_bfd_ref_ptr in target_bfd

I noticed that target_bfd was using manual reference counting for the
BFD it held.  This patch changes it to use gdb_bfd_ref_ptr instead.

Tested by the buildbot.

ChangeLog
2018-05-04  Tom Tromey  <tom@tromey.com>

* bfd-target.c (target_bfd::m_bfd): Now a gdb_bfd_ref_ptr.
(target_bfd::target_bfd, target_bfd::~target_bfd): Update.
gdb/ChangeLog
gdb/bfd-target.c
This page took 0.027156 seconds and 4 git commands to generate.