[uClibc] remote cross GDB debugging with shared libraries onmipsel-linux with uClibc

Joakim Tjernlund Joakim.Tjernlund at lumentis.se
Mon Oct 25 21:38:29 UTC 2004


> 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.

I think MIPS debug procedure may be broken. ld.so handles MIPS the same
way all other archs are handled, except that ld.so makes the debug section writeable.
There is no support for the DT_MIPS_RLD_MAP section.

 Jocke



More information about the uClibc mailing list