From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1815 invoked by alias); 30 Jan 2008 17:47:03 -0000 Received: (qmail 1805 invoked by uid 22791); 30 Jan 2008 17:47:02 -0000 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 30 Jan 2008 17:46:44 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id 0861B98217; Wed, 30 Jan 2008 17:46:43 +0000 (GMT) Received: from caradoc.them.org (22.svnf5.xdsl.nauticom.net [209.195.183.55]) by nan.false.org (Postfix) with ESMTP id E6E9998214; Wed, 30 Jan 2008 17:46:42 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.68) (envelope-from ) id 1JKH1G-0006Vg-0r; Wed, 30 Jan 2008 12:46:42 -0500 Date: Wed, 30 Jan 2008 17:47:00 -0000 From: Daniel Jacobowitz To: Michael Eager Cc: gdb@sourceware.org Subject: Re: Finding ld.so dynamic loader Message-ID: <20080130174641.GA24736@caradoc.them.org> Mail-Followup-To: Michael Eager , gdb@sourceware.org References: <47A0A8D8.7090508@eagercon.com> <20080130165114.GA21783@caradoc.them.org> <47A0AD33.9060905@eagercon.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <47A0AD33.9060905@eagercon.com> User-Agent: Mutt/1.5.17 (2007-12-11) X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2008-01/txt/msg00340.txt.bz2 On Wed, Jan 30, 2008 at 09:00:35AM -0800, Michael Eager wrote: > Apparently, there is some error in parsing "set sysroot": > > (gdb) set sysroot /tmp > No symbol "sysroot" in current context. I suspect your version of GDB predates the "set sysroot" name; solib-absolute-prefix is a lot older. > IMO, if this prefix is not set by the user, the environment > symbol or path should be searched, with the host system searched > as a final choice. I can create a patch to do this if desired. It's harder than it sounds to figure out whether we're native debugging or remote debugging once you're down in the shared library code; I don't think it's worth it. I have no preference whether we search the solib-search-path before or after the sysroot, though I am a little worried about breaking existing setups... -- Daniel Jacobowitz CodeSourcery