From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25883 invoked by alias); 17 Jun 2003 19:13:21 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 22621 invoked from network); 17 Jun 2003 19:11:38 -0000 Received: from unknown (HELO crack.them.org) (146.82.138.56) by sources.redhat.com with SMTP; 17 Jun 2003 19:11:38 -0000 Received: from dsl093-172-017.pit1.dsl.speakeasy.net ([66.93.172.17] helo=nevyn.them.org ident=mail) by crack.them.org with asmtp (Exim 3.12 #1 (Debian)) id 19SLsY-0005gC-00; Tue, 17 Jun 2003 14:12:26 -0500 Received: from drow by nevyn.them.org with local (Exim 3.36 #1 (Debian)) id 19SLrd-0004Oc-00; Tue, 17 Jun 2003 15:11:29 -0400 Date: Tue, 17 Jun 2003 19:13:00 -0000 From: Daniel Jacobowitz To: Kris Warkentin Cc: "Gdb@Sources.Redhat.Com" Subject: Re: Why does solib_open do what it does? Message-ID: <20030617191129.GA15099@nevyn.them.org> Mail-Followup-To: Kris Warkentin , "Gdb@Sources.Redhat.Com" References: <09c201c33502$da555ce0$0202040a@catdog> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <09c201c33502$da555ce0$0202040a@catdog> User-Agent: Mutt/1.5.1i X-SW-Source: 2003-06/txt/msg00339.txt.bz2 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