From owner-freebsd-hackers Fri Feb 23 20: 5:16 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from midget.dons.net.au (daniel.lnk.telstra.net [139.130.137.70]) by hub.freebsd.org (Postfix) with ESMTP id 4BD5637B401 for ; Fri, 23 Feb 2001 20:05:12 -0800 (PST) (envelope-from doconnor@gsoft.com.au) Received: from cain.gsoft.com.au (guppy.dons.net.au [203.31.81.9]) by midget.dons.net.au (8.11.1/8.9.3) with ESMTP id f1O454G10922; Sat, 24 Feb 2001 14:35:04 +1030 (CST) (envelope-from doconnor@gsoft.com.au) Message-ID: X-Mailer: XFMail 1.4.0 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <20010222030457.A2624@sydney.worldwide.lemis.com> Date: Sat, 24 Feb 2001 14:35:03 +1030 (CST) From: "Daniel O'Connor" To: Greg Lehey Subject: Re: gdb and debugging Linux binaries Cc: freebsd-hackers@FreeBSD.org, Jim Pirzyk Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On 22-Feb-01 Greg Lehey wrote: > > /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? He said he did. The problem is the binary is in linux format but the coredump is in FreeBSD format.. You can still attach to processes etc though I think. --- Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message