This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Troubleshooting broken gdbserver/remote-target


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]