This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFC/RFA] dangling bfd pointer in archive cache...
- From: Alan Modra <amodra at gmail dot com>
- To: Joel Brobecker <brobecker at adacore dot com>
- Cc: binutils at sourceware dot org, gdb-patches at sourceware dot org
- Date: Wed, 3 Oct 2012 14:59:37 +0930
- Subject: Re: [RFC/RFA] dangling bfd pointer in archive cache...
- References: <20121002141405.GD3028@adacore.com>
On Tue, Oct 02, 2012 at 07:14:06AM -0700, Joel Brobecker wrote:
> * opncls.c (bfd_close); Add call to _bfd_archive_close_and_cleanup.
No, we should already be calling _bfd_archive_close_and_cleanup via
> --- a/bfd/opncls.c
> +++ b/bfd/opncls.c
> @@ -719,6 +719,17 @@ bfd_close (bfd *abfd)
> if (! BFD_SEND (abfd, _close_and_cleanup, (abfd)))
this call. The problem is in coff-rs6000.c (and coff64-rs6000.c)
where the bfd_target vector just uses bfd_true for close_and_cleanup.
--
Alan Modra
Australia Development Lab, IBM