This is the mail archive of the gdb-patches@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]

Re: Cross solib support; viable at all?


Kevin Buettner wrote:
> 
> GDB has a command called ``set solib-absolute-prefix'' which must be
> set to the path by which GDB can find the libraries on the target.  So,
> for example, if the target's shared libraries reside on the host in
> /path/to/target/root/lib, you'd use the following GDB command in order
> for GDB to properly locate your libraries:
> 
>     (gdb) set solib-absolute-prefix /path/to/target/root
> 

Ah, brilliant!  This was the part I was thinking might need extensions
to the remote protocol, but mounting the target's file system from my
host gets around that problem (especially that of getting hold of the
target's dynamic linker).

Daniel, Kevin, and Michael: thank you all very much for helping me out. 
Things suddenly got a whole lot clearer!

-- 
Orjan Friberg
Axis Communications AB


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