From owner-freebsd-hackers Sat Feb 24 18:19:13 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from mail.disney.com (mail.disney.com [204.128.192.15]) by hub.freebsd.org (Postfix) with ESMTP id 8404237B503 for ; Sat, 24 Feb 2001 18:19:11 -0800 (PST) (envelope-from Jim.Pirzyk@disney.com) Received: from pain10.corp.disney.com (root@pain10.corp.disney.com [153.7.110.100]) by mail.disney.com (Switch-2.0.1/Switch-2.0.1) with SMTP id f1P2Ifc03494 for ; Sat, 24 Feb 2001 18:18:41 -0800 (PST) Received: from louie.fa.disney.com by pain.corp.disney.com with ESMTP for freebsd-hackers@FreeBSD.org; Sat, 24 Feb 2001 18:19:47 -0800 Received: from mercury.fan.fa.disney.com (mercury.fan.fa.disney.com [153.7.119.1]) by louie.fa.disney.com (8.9.2/8.9.2) with ESMTP id SAA07818 for ; Sat, 24 Feb 2001 18:19:09 -0800 (PST) (envelope-from Jim.Pirzyk@disney.com) From: Jim.Pirzyk@disney.com Received: by fanimap.fan.fa.disney.com; Sat, 24 Feb 2001 18:19:08 -0800 Message-Id: Date: Sat, 24 Feb 2001 18:19:08 -0800 Subject: Re: gdb and debugging Linux binaries To: "Daniel O'Connor" Cc: freebsd-hackers@FreeBSD.org, Jim Pirzyk MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 7bit 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.. yes the crux of the problem, so does anyone have patches to the kernel so that linux binaries dump in linux core file format? > > You can still attach to processes etc though I think. If I can keep the program running. The program has its own signal handlers and I cannot stop it before it crashes - JimP To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message