From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13551 invoked by alias); 9 Jun 2005 20:57:16 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 13533 invoked by uid 22791); 9 Jun 2005 20:57:11 -0000 Received: from wbmler3.mail.xerox.com (HELO wbmler3.mail.xerox.com) (13.13.138.218) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Thu, 09 Jun 2005 20:57:11 +0000 Received: from wbmlir2.mail.xerox.com (wbmlir2.mail.xerox.com [13.131.8.222]) by wbmler3.mail.xerox.com (8.13.4/8.13.1) with ESMTP id j59Kv1kq018638; Thu, 9 Jun 2005 16:57:01 -0400 Received: from wbmlir2.mail.xerox.com (localhost [127.0.0.1]) by wbmlir2.mail.xerox.com (8.13.4/8.13.1) with ESMTP id j59Ku9NZ000942; Thu, 9 Jun 2005 16:56:09 -0400 Received: from mailhost.eng.mc.xerox.com (romeo.ess.mc.xerox.com [13.1.87.14]) by wbmlir2.mail.xerox.com (8.13.4/8.13.1) with ESMTP id j59Ku9Bu000937; Thu, 9 Jun 2005 16:56:09 -0400 Received: from rockhopper (rockhopper [13.142.232.138]) by mailhost.eng.mc.xerox.com (8.11.6+Sun/8.9.3) with ESMTP id j59Ks9b02787; Thu, 9 Jun 2005 16:54:09 -0400 (EDT) Subject: Re: Trying to debug an x86 core on a Sparc From: Aaron Gaudio To: Daniel Jacobowitz Cc: gdb In-Reply-To: <20050609194652.GA12582@nevyn.them.org> References: <1118344705.27729.7.camel@rockhopper> <20050609194652.GA12582@nevyn.them.org> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-XG+14ouNeHgMwnCsR565" Date: Thu, 09 Jun 2005 20:57:00 -0000 Message-Id: <1118350565.27729.12.camel@rockhopper> Mime-Version: 1.0 X-SW-Source: 2005-06/txt/msg00084.txt.bz2 --=-XG+14ouNeHgMwnCsR565 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Content-length: 1476 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? >=20 > Either configure gdb using --with-sysroot, or use "set > solib-absolute-prefix". >=20 Thanks for the help...=20 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. --=20 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? --=-XG+14ouNeHgMwnCsR565 Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part Content-length: 197 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (GNU/Linux) iEYEABECAAYFAkKorOUACgkQEbHgw5SciQbiZgCg0v1Rmpew1VBnvXPBVynbQbcR u00AnigNVj4cheMfBZ2hSkCSYl61Q035 =rEC8 -----END PGP SIGNATURE----- --=-XG+14ouNeHgMwnCsR565--