Trying to debug an x86 core on a Sparc
Aaron Gaudio
agaudio@eng.mc.xerox.com
Thu Jun 9 20:57:00 GMT 2005
On Thu, 2005-06-09 at 15:46 -0400, Daniel Jacobowitz wrote:
> On Thu, Jun 09, 2005 at 03:18:25PM -0400, Aaron Gaudio wrote:
> > The executable has a bunch of dll dependencies, with paths like
> > "/usr/lib/libsomething.so.1". These are fine on the x86 box, but on the
> > Sparc box, obviously "/usr/lib/libsomething.so.1" is a sparc binary and
> > not compatible. The x86 library is in a different directory (call
> > it /opt/i386-pc-solaris2.10-sysroot). I want to tell gdb to look at the
> > sysroot directory and not the absolute rpath specified in the
> > executable. Is there any way to do this?
>
> Either configure gdb using --with-sysroot, or use "set
> solib-absolute-prefix".
>
Thanks for the help...
I tried --with-sysroot from the top-level directory (gdb-6.3), but that
configure apparently does not understand the argument, and misinterprets
it as a host specification. I see that the configure in gdb-6.3/gdb does
understand --with-sysroot. Is there any convenient way of making sure
this gets passed down from the top-level to the subdir configure without
manually running configure again?
In the meantime, I'll try out the set solib-absolute-prefix.
--
Aaron Gaudio agaudio @ eng.mc.xerox.com 585-422-6876
While life is yours, live joyously;
None can escape Death's searching eye:
When once this frame of ours they burn,
How shall it e'er again return?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
URL: <http://sourceware.org/pipermail/gdb/attachments/20050609/b8293ca8/attachment.sig>
More information about the Gdb
mailing list