GDB honouring RPATH in binaries.

Kevin Buettner kevinb@redhat.com
Thu Feb 20 19:55:00 GMT 2003


On Feb 20,  2:41pm, Kris Warkentin wrote:

> > With regard to the remote case, I would have thought that simply
> > prepending solib-absolute-prefix would give the correct results.
> 
> Well, let's say I upload my program and libs to /tmp on the remote with the
> binary's RPATH set to /tmp.  I'm debugging on Cygwin in /home/kewarken/test.
> My solib-absolute-prefix and solib-search-path are based in
> c:\QNXsdk\target\qnx6 (where all the libs are stored).  This is why I'm not
> convinced that there's any nice way to use RPATH in the remote case.

I see what you mean.  Unless you're using an NFS mount, it's unlikely
for the sys-root on the host to contain the stuff you've just uploaded
to /tmp.

In this case, I think it would make sense to use solib-search-path
to find the libraries that you've uploaded to /tmp.

Kevin



More information about the Gdb mailing list