Re: Troubleshooting broken gdbserver/remote-target

Paul Pluzhnikov
2009-06-23T17:00:15Z

On Mon, Jun 22, 2009 at 10:09 PM, Grant Edwards
<grant.b.edwards@gmail.com> wrote:

> What would cause gdb to miss out on the fact that /lib/libuClibc-0.9.30.1.so
> is mapped?
>
> Where does gdb get mapping info?

I believe the code GDB should be using on Linux is in solib-svr4.c

Gdb looks for _r_debug symbol and DT_DEBUG Elf32_Dyn entry to find the
'struct r_debug', which contains a linked list of loaded shared libraries,
and traverses that list.

My guess: either GDB is not finding _r_debug, or (more likely) is not
traversing the list correctly.

Cheers,
--
Paul Pluzhnikov