This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Troubleshooting broken gdbserver/remote-target
- From: Paul Pluzhnikov <ppluzhnikov at google dot com>
- To: Grant Edwards <grant dot b dot edwards at gmail dot com>
- Cc: gdb at sources dot redhat dot com
- Date: Tue, 23 Jun 2009 09:59:59 -0700
- Subject: Re: Troubleshooting broken gdbserver/remote-target
- References: <h1pgtf$oc2$1@ger.gmane.org> <h1po1r$457$1@ger.gmane.org>
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