This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: Why does solib_open do what it does?
- From: Daniel Jacobowitz <drow at mvista dot com>
- To: Kris Warkentin <kewarken at qnx dot com>
- Cc: "Gdb at Sources dot Redhat dot Com" <gdb at sources dot redhat dot com>
- Date: Tue, 17 Jun 2003 15:11:29 -0400
- Subject: Re: Why does solib_open do what it does?
- References: <09c201c33502$da555ce0$0202040a@catdog>
On Tue, Jun 17, 2003 at 03:01:25PM -0400, Kris Warkentin wrote:
> I'm looking at solib.c:solib_open() and as I go down the list:
>
> Search order:
> 1 * If path is absolute, look in SOLIB_ABSOLUTE_PREFIX.
> 2 * If path is absolute or relative, look for it literally (unmodified).
> 3 * Look in SOLIB_SEARCH_PATH.
> 4 * If available, use target defined search function.
> 5 * Look in inferior's $PATH.
> 6 * Look in inferior's $LD_LIBRARY_PATH.
>
> I'm puzzled. Why are we testing for the existence of solib_search_path
> before checking 5 and 6?
You'll have to get Kevin's opinion, but it looks like a paste-o to me.
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer