This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [rfc] Allow platform-specific override for solib_bfd_open (Re: [RFC] solib for darwin)
- From: "Ulrich Weigand" <uweigand at de dot ibm dot com>
- To: gingold at adacore dot com (Tristan Gingold)
- Cc: gdb-patches at sourceware dot org
- Date: Thu, 15 Jan 2009 17:36:22 +0100 (CET)
- Subject: Re: [rfc] Allow platform-specific override for solib_bfd_open (Re: [RFC] solib for darwin)
> * solist.h (struct target_so_ops): New member bfd_open.
> (solib_find): Add prototype.
> (solib_bfd_fopen): Add prototype.
> * solib.c (solib_find, solib_bfd_fopen): New functions, extracted
> from solib_bfd_open.
> (solib_bfd_open): Use ops->bfd_open override if present. Call
> solib_find and solib_bfd_open otherwise.
>
> * objfiles.h (OBJF_KEEPBFD): New define.
> * objfiles.c (free_objfile): Do not close BFD if OBJF_KEEPBFD
> objfile flag is set.
> * solib.c (symbol_add_stub): Do not allocate second BFD for
> shared library; use OBJF_KEEPBFD flag on solib objfile.
I've checked this in now.
Bye,
Ulrich
--
Dr. Ulrich Weigand
GNU Toolchain for Linux on System z and Cell BE
Ulrich.Weigand@de.ibm.com