* Trying to debug an x86 core on a Sparc
@ 2005-06-09 19:19 Aaron Gaudio
2005-06-09 19:47 ` Daniel Jacobowitz
2005-06-12 8:03 ` Mark Kettenis
0 siblings, 2 replies; 6+ messages in thread
From: Aaron Gaudio @ 2005-06-09 19:19 UTC (permalink / raw)
To: gdb
[-- Attachment #1: Type: text/plain, Size: 1127 bytes --]
Hello all,
I've got gdb built using the configure arg '--target i386-pc-
solaris2.10', on build host 'sparc-sun-solaris2.8'. I'm trying to debug
a core file which was produced on an x86 Solaris 10 box. I do have a
copy of the x86 executable available on the sparc box.
I try to load the executable and core using i386-pc-solaris2.10-gdb core
executable
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?
--
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?
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 197 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: Trying to debug an x86 core on a Sparc
2005-06-09 19:19 Trying to debug an x86 core on a Sparc Aaron Gaudio
@ 2005-06-09 19:47 ` Daniel Jacobowitz
2005-06-09 20:57 ` Aaron Gaudio
2005-06-12 8:03 ` Mark Kettenis
1 sibling, 1 reply; 6+ messages in thread
From: Daniel Jacobowitz @ 2005-06-09 19:47 UTC (permalink / raw)
To: Aaron Gaudio; +Cc: gdb
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".
--
Daniel Jacobowitz
CodeSourcery, LLC
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Trying to debug an x86 core on a Sparc
2005-06-09 19:47 ` Daniel Jacobowitz
@ 2005-06-09 20:57 ` Aaron Gaudio
2005-06-09 21:10 ` Daniel Jacobowitz
0 siblings, 1 reply; 6+ messages in thread
From: Aaron Gaudio @ 2005-06-09 20:57 UTC (permalink / raw)
To: Daniel Jacobowitz; +Cc: gdb
[-- Attachment #1: Type: text/plain, Size: 1500 bytes --]
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?
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 197 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: Trying to debug an x86 core on a Sparc
2005-06-09 20:57 ` Aaron Gaudio
@ 2005-06-09 21:10 ` Daniel Jacobowitz
2005-06-10 15:10 ` Aaron Gaudio
0 siblings, 1 reply; 6+ messages in thread
From: Daniel Jacobowitz @ 2005-06-09 21:10 UTC (permalink / raw)
To: Aaron Gaudio; +Cc: gdb
On Thu, Jun 09, 2005 at 04:56:05PM -0400, Aaron Gaudio wrote:
> 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?
Please give me the entire command line and error message that you saw
when you did this. It is supposed to work. Did you use --with-sysroot
<space> /path? All configure options are --with-sysroot=/path.
--
Daniel Jacobowitz
CodeSourcery, LLC
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Trying to debug an x86 core on a Sparc
2005-06-09 19:19 Trying to debug an x86 core on a Sparc Aaron Gaudio
2005-06-09 19:47 ` Daniel Jacobowitz
@ 2005-06-12 8:03 ` Mark Kettenis
1 sibling, 0 replies; 6+ messages in thread
From: Mark Kettenis @ 2005-06-12 8:03 UTC (permalink / raw)
To: agaudio; +Cc: gdb
From: Aaron Gaudio <agaudio@eng.mc.xerox.com>
Date: Thu, 09 Jun 2005 15:18:25 -0400
Hello all,
I've got gdb built using the configure arg '--target i386-pc-
solaris2.10', on build host 'sparc-sun-solaris2.8'. I'm trying to debug
a core file which was produced on an x86 Solaris 10 box. I do have a
copy of the x86 executable available on the sparc box.
I'd be surprised if this would work. AFAIK there is no support for
cross-debugging core files for Solaris in BFD.
Mark
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2005-06-12 8:03 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-06-09 19:19 Trying to debug an x86 core on a Sparc Aaron Gaudio
2005-06-09 19:47 ` Daniel Jacobowitz
2005-06-09 20:57 ` Aaron Gaudio
2005-06-09 21:10 ` Daniel Jacobowitz
2005-06-10 15:10 ` Aaron Gaudio
2005-06-12 8:03 ` Mark Kettenis
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox