From owner-freebsd-hackers Fri Feb 23 12:59:32 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from palrel1.hp.com (palrel1.hp.com [156.153.255.242]) by hub.freebsd.org (Postfix) with ESMTP id 6E2EB37B491 for ; Fri, 23 Feb 2001 12:59:25 -0800 (PST) (envelope-from marcel@cup.hp.com) Received: from adlmail.cup.hp.com (adlmail.cup.hp.com [15.0.100.30]) by palrel1.hp.com (Postfix) with ESMTP id 07C6F14A6; Fri, 23 Feb 2001 12:59:24 -0800 (PST) Received: from cup.hp.com (gauss.cup.hp.com [15.28.97.152]) by adlmail.cup.hp.com (8.9.3 (PHNE_18546)/8.9.3 SMKit7.02) with ESMTP id MAA09234; Fri, 23 Feb 2001 12:59:19 -0800 (PST) Message-ID: <3A96CF27.B2B624BD@cup.hp.com> Date: Fri, 23 Feb 2001 12:59:19 -0800 From: Marcel Moolenaar Organization: Hewlett-Packard X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.2.12 i386) X-Accept-Language: en MIME-Version: 1.0 To: Greg Lehey Cc: Jim Pirzyk , freebsd-hackers@FreeBSD.ORG Subject: Re: gdb and debugging Linux binaries References: <01022213560407.44596@snoopy.fan.fa.disney.com> <20010222030457.A2624@sydney.worldwide.lemis.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Greg Lehey wrote: > > 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? IIRC, the Linux gdb doesn't grok our core files. I started an implementation for our Linuxulator to dump Linux compatible core files so that you could use the Linux gdb. I guess I lost what I had back then. -- Marcel Moolenaar mail: marcel@cup.hp.com / marcel@FreeBSD.org tel: (408) 447-4222 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message