From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28325 invoked by alias); 17 Jun 2003 19:01:18 -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 28315 invoked from network); 17 Jun 2003 19:01:18 -0000 Received: from unknown (HELO hub.ott.qnx.com) (209.226.137.76) by sources.redhat.com with SMTP; 17 Jun 2003 19:01:18 -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 OAA24220 for ; Tue, 17 Jun 2003 14:54:38 -0400 Received: from catdog ([10.4.2.2]) by smtp.ott.qnx.com (8.8.8/8.6.12) with SMTP id PAA11121 for ; Tue, 17 Jun 2003 15:01:16 -0400 Message-ID: <09c201c33502$da555ce0$0202040a@catdog> From: "Kris Warkentin" To: "Gdb@Sources.Redhat.Com" Subject: Why does solib_open do what it does? Date: Tue, 17 Jun 2003 19:01: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/msg00338.txt.bz2 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? cheers, Kris