This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Debugging a shared library through gdbserver
On Thu, Mar 16, 2006 at 08:52:54AM +0800, Nai-Hsien wrote:
> > >
> > > # my shared library is in lib/
> > > (gdb) set solib-absolute-prefix lib
> >
> > That's not what solib-absolute-prefix is for. You need to point it at
> > the root of a filesystem image that matches the one running on your
> > target, so that GDB can open <prefix>/lib/ld.so.1 and
> > <prefix>/usr/lib/libfoo.so. I usually use NFS for this. If you
> > do that...
> Unfornately, I am using TFTP to download a RAM disk image to my board and
> run it. Is there any other solution for the case?
Set up a similar unpacked image on your host, possibly with more debug
symbols. But use the same layout.
<prefix>
<prefix>/lib
<prefix>/usr/lib
et cetera.
--
Daniel Jacobowitz
CodeSourcery