From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30282 invoked by alias); 17 Jun 2003 19:14:53 -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 29908 invoked from network); 17 Jun 2003 19:14:48 -0000 Received: from unknown (HELO hub.ott.qnx.com) (209.226.137.76) by sources.redhat.com with SMTP; 17 Jun 2003 19:14:48 -0000 Received: from smtp.ott.qnx.com (smtp.ott.qnx.com [10.0.2.158]) by hub.ott.qnx.com (8.9.3p2/8.9.3) with ESMTP id PAA26337; Tue, 17 Jun 2003 15:08:08 -0400 Received: from catdog ([10.4.2.2]) by smtp.ott.qnx.com (8.8.8/8.6.12) with SMTP id PAA26742; Tue, 17 Jun 2003 15:14:46 -0400 Message-ID: <09e801c33504$bd88b420$0202040a@catdog> From: "Kris Warkentin" To: "Daniel Jacobowitz" Cc: "Gdb@Sources.Redhat.Com" References: <09c201c33502$da555ce0$0202040a@catdog> <20030617191129.GA15099@nevyn.them.org> Subject: Re: Why does solib_open do what it does? Date: Tue, 17 Jun 2003 19:14:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-SW-Source: 2003-06/txt/msg00340.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. That's what I was thinking too. A customer reported that when they don't set solib-search-path, all of a sudden gdb isn't finding solibs that used to be found in LD_LIBRARY_PATH. You think it's okay for me to fix it? cheers, Kris