From owner-freebsd-hackers Fri Feb 23 6:49:29 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from sydney.worldwide.lemis.com (bos-30-c-178.bos.dsl.cerfnet.com [209.187.126.178]) by hub.freebsd.org (Postfix) with ESMTP id D4F0337B4EC for ; Fri, 23 Feb 2001 06:49:24 -0800 (PST) (envelope-from grog@sydney.worldwide.lemis.com) Received: (from grog@localhost) by sydney.worldwide.lemis.com (8.11.1/8.9.3) id f1M84v002657; Thu, 22 Feb 2001 03:04:57 -0500 (EST) (envelope-from grog) Date: Thu, 22 Feb 2001 03:04:57 -0500 From: Greg Lehey To: Jim Pirzyk Cc: freebsd-hackers@FreeBSD.org Subject: Re: gdb and debugging Linux binaries Message-ID: <20010222030457.A2624@sydney.worldwide.lemis.com> References: <01022213560407.44596@snoopy.fan.fa.disney.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <01022213560407.44596@snoopy.fan.fa.disney.com>; from Jim.Pirzyk@disney.com on Thu, Feb 22, 2001 at 01:55:07PM -0800 Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-418-838-708 WWW-Home-Page: http://www.lemis.com/~grog X-PGP-Fingerprint: 6B 7B C3 8C 61 CD 54 AF 13 24 52 F8 6D A4 95 EF Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thursday, 22 February 2001 at 13:55:07 -0800, Jim Pirzyk wrote: > > I have a question on how to debug Linux binaries. I have a core > file from the linux binary, but if I use the FreeBSD gdb, it cannot > find the shared libraries in /compat/linux/.... If I use the /compat/linux/ > /usr/bin/gdb, it says the core file is in the wrong format: > > Couldn't fetch registers from core file: File in wrong format > Couldn't fetch register set 2 from core file: File in wrong format > > So what is the correct procedure for debugging Linux binaries? Have you tried the Linux gdb? Greg -- Finger grog@lemis.com for PGP public key See complete headers for address and phone numbers To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message