From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7561 invoked by alias); 20 Nov 2002 19:45: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 7554 invoked from network); 20 Nov 2002 19:45:17 -0000 Received: from unknown (HELO crack.them.org) (65.125.64.184) by sources.redhat.com with SMTP; 20 Nov 2002 19:45:17 -0000 Received: from nevyn.them.org ([66.93.61.169] ident=mail) by crack.them.org with asmtp (Exim 3.12 #1 (Debian)) id 18Ecf4-0005gY-00; Wed, 20 Nov 2002 15:45:30 -0600 Received: from drow by nevyn.them.org with local (Exim 3.36 #1 (Debian)) id 18Eama-0000JW-00; Wed, 20 Nov 2002 14:45:08 -0500 Date: Wed, 20 Nov 2002 11:45:00 -0000 From: Daniel Jacobowitz To: Paul Koning Cc: paul.mundt@timesys.com, gdb@sources.redhat.com Subject: Re: gdbserver on PowerPC Issues Message-ID: <20021120194508.GA969@nevyn.them.org> Mail-Followup-To: Paul Koning , paul.mundt@timesys.com, gdb@sources.redhat.com References: <1037812916.1315.22.camel@Origin> <20021120183953.GC24089@nevyn.them.org> <1037820175.1317.30.camel@Origin> <20021120192125.GA14049@nevyn.them.org> <15835.58034.655312.738765@pkoning.dev.equallogic.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <15835.58034.655312.738765@pkoning.dev.equallogic.com> User-Agent: Mutt/1.5.1i X-SW-Source: 2002-11/txt/msg00291.txt.bz2 On Wed, Nov 20, 2002 at 02:29:54PM -0500, Paul Koning wrote: > >>>>> "Daniel" == Daniel Jacobowitz writes: > > Daniel> On Wed, Nov 20, 2002 at 02:22:56PM -0500, Paul Mundt wrote: > >> On Wed, 2002-11-20 at 13:39, Daniel Jacobowitz wrote: > The > >> problem is presumably that you haven't told GDB where to look for > >> > the dynamic linker and shared libraries. Try using 'set > > >> solib-absolute-prefix' before you 'target remote'. > >> > > >> Ah! This was indeed the problem. Though oddly enough, adjusting > >> solib-absolute-prefix didn't make the problem go away. I had to > >> set it to /dev/null and then set solib-search-patch to the proper > >> directory before the issue would fix itself. > >> > >> There was some CRIS documentation hinting that that would only be > >> necessary if the end of the path wasn't /lib, but in this case it > >> was. > > Daniel> Mind setting solib-absolute-prefix and stracing GDB to see > Daniel> what it was opening, then? It really should work. > > Depends on whether the library names are given in the image with a > leading slash or not. If yes, then the absolute prefix setting > matters; if not, the search path. Right, but Paul's using a Linux target; both of the Linux dynamic loaders I'm familiar with set full paths in the linker map. Fortunately, problem solved now! -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer