This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA] Make "cbfd" a gdb_bfd_ref_ptr
- From: Pedro Alves <palves at redhat dot com>
- To: Tom Tromey <tom at tromey dot com>, gdb-patches at sourceware dot org
- Date: Wed, 16 May 2018 18:39:22 +0100
- Subject: Re: [RFA] Make "cbfd" a gdb_bfd_ref_ptr
- References: <20180511214924.26576-1-tom@tromey.com>
On 05/11/2018 10:49 PM, Tom Tromey wrote:
> 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-11 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.
OK.
Thanks,
Pedro Alves