This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: gdbserver on PowerPC Issues
- From: Daniel Jacobowitz <drow at mvista dot com>
- To: Paul Mundt <paul dot mundt at timesys dot com>
- Cc: gdb at sources dot redhat dot com
- Date: Wed, 20 Nov 2002 13:39:53 -0500
- Subject: Re: gdbserver on PowerPC Issues
- References: <1037812916.1315.22.camel@Origin>
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