]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gdb/ChangeLog
Make "cbfd" a gdb_bfd_ref_ptr
authorTom Tromey <tom@tromey.com>
Fri, 11 May 2018 18:36:19 +0000 (12:36 -0600)
committerTom Tromey <tom@tromey.com>
Wed, 16 May 2018 17:45:03 +0000 (11:45 -0600)
commit06333fea767dc1eaf88ac286293fcbaa0ef2de9e
tree69d1ea0454bb40bd7407c990c8edc203fd9d7b58
parent921222e2e8e8427c6a609b1ff66265dceb0d07eb
Make "cbfd" a gdb_bfd_ref_ptr

This changes program_space::cbfd to be a gdb_bfd_ref_ptr.  This makes
it somewhat less error-prone to use, because now it manages the
reference counting automatically.

Tested by the buildbot.

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

* gdbcore.h (core_bfd): Redefine.
* corelow.c (core_target::close): Update.
(core_target_open): Update.
* progspace.h (struct program_space) <cbfd>: Now a
gdb_bfd_ref_ptr.
gdb/ChangeLog
gdb/corelow.c
gdb/gdbcore.h
gdb/progspace.h