This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Program image not relocated if it's a solib already loaded by dlopen()
- From: Daniel Jacobowitz <dan at codesourcery dot com>
- To: Simo Melenius <smelenius at nvidia dot com>
- Cc: gdb at sourceware dot org
- Date: Mon, 19 Apr 2010 10:21:52 -0400
- Subject: Re: Program image not relocated if it's a solib already loaded by dlopen()
- References: <alpine.DEB.2.00.1004162219280.1072@geist>
On Fri, Apr 16, 2010 at 10:20:39PM +0300, Simo Melenius wrote:
> Assume I'm developing ``libfoo.so'' and am not particularly
> interested in ``foo'' itself. So, I start ``foo'', attach gdbserver
> to it, and invoke gdb on the host platform as follows:
>
> $ arm-eabi-gdb libfoo.so
First of all, I assume this is an arm-linux-gnueabi GDB. If it were
an ARM EABI gdb, you wouldn't get shared library support at all. But
that may be your problem.
Secondly, don't do this. If you want to debug libfoo.so, just make
sure GDB has search paths set up, and start GDB on the executable.
Otherwise, it can not find the load map. No shared library support is
going to work properly in this case.
--
Daniel Jacobowitz
CodeSourcery