linux-mips
[Top] [All Lists]

remote cross GDB debugging with shared libraries on mipsel-linux with uC

To: "Linux-MIPS List" <linux-mips@linux-mips.org>, "uClibc List" <uclibc@uclibc.org>
Subject: remote cross GDB debugging with shared libraries on mipsel-linux with uClibc
From: "Mike C. Ward" <mike.ward@pioneer-pra.com>
Date: Mon, 25 Oct 2004 13:10:53 -0700
Importance: Normal
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
I am having trouble with remote cross GDB debugging on mipsel-linux 
with uClibc.  

Has anyone had success remote debugging a MIPSEL program that uses 
shared libraries and uClibc?  Anyone aware of a problem with this 
configuration?

mipsel-linux-gcc (GCC) 3.3.3
uClibc-0.9.27
binutils 2.14.90.0.7 20031029
Linux 2.4.25
GDB 5.3 and GDB 6.2.1 and gdb+dejagnu-20040805
have been tried.  

Thanks,

Mike

More details follow:

GDB finds and opens
ld-uClibc.so.0, but is unable to properly load any
libraries. 
Libraries are unstripped on the host,
target contains stripped versions of the identical
libraries.
GDB gets shared library event breakpoints when libraries are loaded
if they're enabled.  The GDB function elf_locate_base()
finds DT_MIPS_RLD_MAP which "contains a pointer 
to the address of the dynamic link structure."  But that
address is read as 0.

<Prev in Thread] Current Thread [Next in Thread>
  • remote cross GDB debugging with shared libraries on mipsel-linux with uClibc, Mike C. Ward <=