From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21145 invoked by alias); 17 Jun 2003 19:37:50 -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 18133 invoked from network); 17 Jun 2003 19:36:55 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sources.redhat.com with SMTP; 17 Jun 2003 19:36:55 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.11.6/8.11.6) with ESMTP id h5HJasH05312 for ; Tue, 17 Jun 2003 15:36:54 -0400 Received: from pobox.corp.redhat.com (pobox.corp.redhat.com [172.16.52.156]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id h5HJasI32764 for ; Tue, 17 Jun 2003 15:36:54 -0400 Received: from localhost.redhat.com (romulus-int.sfbay.redhat.com [172.16.27.46]) by pobox.corp.redhat.com (8.11.6/8.11.6) with ESMTP id h5HJarg07376 for ; Tue, 17 Jun 2003 15:36:53 -0400 Received: by localhost.redhat.com (Postfix, from userid 469) id 2B12F2C989; Tue, 17 Jun 2003 15:43:31 -0400 (EDT) From: Elena Zannoni MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <16111.28514.443793.945430@localhost.redhat.com> Date: Tue, 17 Jun 2003 19:37:00 -0000 To: "Kris Warkentin" Cc: "Daniel Jacobowitz" , "Gdb@Sources.Redhat.Com" Subject: Re: Why does solib_open do what it does? In-Reply-To: <09e801c33504$bd88b420$0202040a@catdog> References: <09c201c33502$da555ce0$0202040a@catdog> <20030617191129.GA15099@nevyn.them.org> <09e801c33504$bd88b420$0202040a@catdog> X-SW-Source: 2003-06/txt/msg00342.txt.bz2 Kris Warkentin writes: > > 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 > can you do some cvs annotate/diffs ? maybe you'll see when that was introduced, and find a changelog that explains things. elena