Date: Fri, 23 Feb 2001 12:59:19 -0800 From: Marcel Moolenaar <marcel@cup.hp.com> To: Greg Lehey <grog@lemis.com> Cc: Jim Pirzyk <Jim.Pirzyk@disney.com>, freebsd-hackers@FreeBSD.ORG Subject: Re: gdb and debugging Linux binaries Message-ID: <3A96CF27.B2B624BD@cup.hp.com> References: <01022213560407.44596@snoopy.fan.fa.disney.com> <20010222030457.A2624@sydney.worldwide.lemis.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3A96CF27.B2B624BD>