From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29553 invoked by alias); 1 Apr 2004 15:04:11 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 29475 invoked from network); 1 Apr 2004 15:04:06 -0000 Received: from unknown (HELO nevyn.them.org) (66.93.172.17) by sources.redhat.com with SMTP; 1 Apr 2004 15:04:06 -0000 Received: from drow by nevyn.them.org with local (Exim 4.30 #1 (Debian)) id 1B93jm-000846-Ux; Thu, 01 Apr 2004 10:04:10 -0500 Date: Thu, 01 Apr 2004 15:04:00 -0000 From: Daniel Jacobowitz To: Kris Warkentin Cc: "Gdb-Patches@Sources.Redhat.Com" Subject: Re: [patch] Bring QNX Neutrino support forward. Message-ID: <20040401150410.GB30729@nevyn.them.org> Mail-Followup-To: Kris Warkentin , "Gdb-Patches@Sources.Redhat.Com" References: <4060A9C0.1090906@qnx.com> <20040331222120.GB6811@nevyn.them.org> <406C2EA6.2010501@qnx.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <406C2EA6.2010501@qnx.com> User-Agent: Mutt/1.5.1i X-SW-Source: 2004-04/txt/msg00020.txt.bz2 On Thu, Apr 01, 2004 at 10:00:54AM -0500, Kris Warkentin wrote: > I'm looking through solib_open() and trying to recreate my reasoning. > It certainly seemed like a good idea at the time. Let's say the linker > has the library as /home/kewarken/libfoo.so. Given the current > solib_open, I don't believe that gdb will find it without having > solib-search-path set. I put that there as a 'just in case' thing > because a) it works well on self hosted and b) even for remote > debugging, we often match the host and target filesystems. I figured > that all common libs like libc.so, etc. would have been caught by the > openp() above so the odds of accidentally getting a host library are > slim. This makes things a bit easier for the user: the linker fills in > the full path and gdb uses it rather than requiring a solib-search-path. We've resisted allowing this sort of fallback for other targets, specifically refusing to ignore solib-absolute-prefix - which your code does, by not using solib_open. But since you add the paths by default rather than the user specifying them I guess a fallback isn't so bad. -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer