This is the mail archive of the gdb-patches@sources.redhat.com 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]

Re: [RFA] Encapsulate method of searching for a solib.


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

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