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: Program image not relocated if it's a solib already loaded by dlopen()


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


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