From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2377 invoked by alias); 30 Jan 2008 17:00:56 -0000 Received: (qmail 2369 invoked by uid 22791); 30 Jan 2008 17:00:56 -0000 X-Spam-Check-By: sourceware.org Received: from shell4.BAYAREA.NET (HELO shell4.bayarea.net) (209.128.82.1) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 30 Jan 2008 17:00:37 +0000 Received: (qmail 7704 invoked from network); 30 Jan 2008 09:00:36 -0800 Received: from 209-128-106-254.bayarea.net (HELO ?192.168.20.7?) (209.128.106.254) by shell4.bayarea.net with SMTP; 30 Jan 2008 09:00:36 -0800 Message-ID: <47A0AD33.9060905@eagercon.com> Date: Wed, 30 Jan 2008 17:00:00 -0000 From: Michael Eager User-Agent: Thunderbird 1.5.0.9 (X11/20070102) MIME-Version: 1.0 To: gdb@sourceware.org Subject: Re: Finding ld.so dynamic loader References: <47A0A8D8.7090508@eagercon.com> <20080130165114.GA21783@caradoc.them.org> In-Reply-To: <20080130165114.GA21783@caradoc.them.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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/msg00336.txt.bz2 Daniel Jacobowitz wrote: > On Wed, Jan 30, 2008 at 08:42:00AM -0800, Michael Eager wrote: >> If solib_absolute_prefix is empty (true for almost all targets) and >> /lib/ld.so.1 exists on the host system, this will be opened in >> preference to either one specified on the SOLIB_SEARCH_PATH or using a >> target search path. > > In my opinion, there's the mistake: solib_absolute_prefix isn't > related to your target. It's a configuration setting, and if you're > using gdbserver to talk to a remote system, you should set it ("set > sysroot"). If you don't have the same layout as your target > reproduced on your host, set it to a nonexistant path. > > That said, I'm not sure why we search the literal path before the > search path either. Apparently, there is some error in parsing "set sysroot": (gdb) set sysroot /tmp No symbol "sysroot" in current context. "set solib-absolute-prefix" does set the prefix. 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. -- Michael Eager eager@eagercon.com 1960 Park Blvd., Palo Alto, CA 94306 650-325-8077