This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: cross-debugging with gdbserver, why can't gdb find breakpoint function?
On Thursday 17 July 2003 04:30 pm, Daniel Jacobowitz wrote:
> On Thu, Jul 17, 2003 at 04:20:38PM -0400, Jon Ringle wrote:
> > On Thursday 17 July 2003 04:00 pm, David Wuertele wrote:
> > > Why is gdb trying to open /lib/ld.so.1? That /lib directory has
> > > nothing to do with the target libs. The target libs can be found in
> > > /nfsroot/lib. How do I tell gdb to look there instead of /lib?
> >
> > this worked for me on my arm crossgdb:
> >
> > (gdb) set solib-absolute-prefix /dev/null
> > (gdb) set solib-search-path /nfsroot/lib
>
> Please, don't do it that way. For David's setup the right way is:
> (gdb) set solib-absolute-prefix /nfsroot
>
> If you can point to somewhere you looked in the documentation and
> didn't see this, I'd love to improve it.
(gdb) help set solib-search-path
Set the search path for loading non-absolute shared library symbol files.
This takes precedence over the environment variables PATH and LD_LIBRARY_PATH.
The help here doesn't imply that /lib will be suffixed to the
solib-search-path setting...