This is the mail archive of the gdb@sources.redhat.com 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: GDB honouring RPATH in binaries.


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


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