This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFA] Encapsulate method of searching for a solib.
- To: Michael Snyder <msnyder at cygnus dot com>, gdb-patches at sources dot redhat dot com
- Subject: Re: [RFA] Encapsulate method of searching for a solib.
- From: Kevin Buettner <kevinb at cygnus dot com>
- Date: Tue, 31 Oct 2000 17:23:45 -0700
- References: <200010312203.OAA25580@cleaver.cygnus.com>
On Oct 31, 2:03pm, Michael Snyder wrote:
> The enable_break function from solib-svr4.c needs to use the same
> search method for shared libs as is used in solib.c (utilizing
> SOLIB_ABSOLUTE_PREFIX and SOLIB_SEARCH_PATH), so I've abstracted
> this method into a function and cleaned it up a bit.
>
> 2000-10-31 Michael Snyder <msnyder@cleaver.cygnus.com>
>
> * solib.c (solib_open): New function. Abstracts the code from
> solib_map_sections that searches for a solib file.
> (solib_map_sections): Call solib_open instead of working inline.
> * solib-svr4.c (enable_break): Call solib_open to find the
> dynamic linker's base address.
> * solib-svr4.h (solib_open): Export the declaration.
This looks good to me, but Jim Blandy is the official maintainer of
these files, so if you want "official maintainer approval", you'll
have to check with him.
Kevin