On Tue, Aug 4, 2009 at 7:53 AM, Daniel Jacobowitz wrote: > A comment somewhere about the usage of the usrdata field would be > nice.  I gather that NULL and 1 behave the same? Yes. I added comment to gdb_bfd_unref. Updated patch attached. Tested on Linux/x86_64 with no new failures. Daniel, could you confirm that this fixes the ARM failures? Thanks, -- Paul Pluzhnikov 2009-08-04 Paul Pluzhnikov * objfiles.h (OBJF_KEEPBFD): Delete. (gdb_bfd_unref): New prototype. * objfiles.c (gdb_bfd_unref): New function. (free_objfile): Call gdb_bfd_unref. * solib.c (free_so): Likewise. (symbol_add_stub): Set refcount.