From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5873 invoked by alias); 20 Nov 2002 18:39:55 -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 5866 invoked from network); 20 Nov 2002 18:39:55 -0000 Received: from unknown (HELO crack.them.org) (65.125.64.184) by sources.redhat.com with SMTP; 20 Nov 2002 18:39:55 -0000 Received: from nevyn.them.org ([66.93.61.169] ident=mail) by crack.them.org with asmtp (Exim 3.12 #1 (Debian)) id 18Ebdt-0005Z1-00; Wed, 20 Nov 2002 14:40:13 -0600 Received: from drow by nevyn.them.org with local (Exim 3.36 #1 (Debian)) id 18EZlR-0006JO-00; Wed, 20 Nov 2002 13:39:53 -0500 Date: Wed, 20 Nov 2002 10:39:00 -0000 From: Daniel Jacobowitz To: Paul Mundt Cc: gdb@sources.redhat.com Subject: Re: gdbserver on PowerPC Issues Message-ID: <20021120183953.GC24089@nevyn.them.org> Mail-Followup-To: Paul Mundt , gdb@sources.redhat.com References: <1037812916.1315.22.camel@Origin> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1037812916.1315.22.camel@Origin> User-Agent: Mutt/1.5.1i X-SW-Source: 2002-11/txt/msg00278.txt.bz2 On Wed, Nov 20, 2002 at 12:21:57PM -0500, Paul Mundt wrote: > Hi, > > Currently when I try and debug an application via gdbserver running on a > PowerPC target (ep8260 in this case) I get the following: > > $ powerpc-linux-gdb > GNU gdb 5.2.1 > Copyright 2002 Free Software Foundation, Inc. > GDB is free software, covered by the GNU General Public License, and you > are > welcome to change it and/or distribute copies of it under certain > conditions. > Type "show copying" to see the conditions. > There is absolutely no warranty for GDB. Type "show warranty" for > details. > This GDB was configured as "--host=i686-linux --target=powerpc-linux". > (gdb) file hello > Reading symbols from hello...done. > (gdb) target remote 192.168.2.84:10002 > Remote debugging using 192.168.2.84:10002 > 0x3000fa8c in ?? () > warning: Unable to find dynamic linker breakpoint function. > GDB will be unable to debug shared library initializers > and track explicitly loaded dynamic code. > (gdb) > > Now, looking through gnats, I see that someone had a similar problem and > this was logged as PR 236 -- to which there doesn't seem to be a fix. > > Also looking through google, someone had suggested that this problem > might potentially be caused by having a stripped linker, and the linker > does indeed appear to be unstripped. > > Any other suggestions? 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'. I suppose it might be worth adding to that message in order to make this clearer... -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer