This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: RFA: fix Darwin bug, PR gdb/14290


On Nov 27, 2012, at 8:54 PM, Tom Tromey wrote:

> This fixes the bug reported in PR gdb/14290.
> 
> The bug is a double free.  The problem is that gdb doesn't wrap
> gdb_bfd_mach_o_fat_extract, which can return either a contained BFD or
> its argument.
> 
> The fix is to write a wrapper for this functionality so that the BFD
> reference counting is handled properly.  This required exposing a bit
> more API from gdb_bfd.c.

Looks good to me, but you're the bfd_ref expert!

Tristan.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]