Date: Mon, 15 Jan 2018 22:02:58 -0500 From: Pedro Giffuni <pfg@FreeBSD.org> To: FreeBSD Hackers <freebsd-hackers@freebsd.org> Subject: Re: examining Linux core file? Message-ID: <bfe13557-55f1-a04a-1367-9cbb58075323@FreeBSD.org>
next in thread | raw e-mail | index | archive | help
> On Sun, Jan 14, 2018 at 7:31 PM, Benjamin Kaduk <kaduk@mit.edu> wrote: > > On Sun, Jan 14, 2018 at 07:57:01AM -0800, Chuck Tuffli wrote: > >> If a Linux application running under the Linux emulation (a.k.a. > >> Linuxulator) core dumps, is it possible to examine the resulting core > >> file? lldb didn't seem to like it: > > > > I wonder how a Linux gdb running under the Linuxulator would fare > > with it? > > Sorry, that's what I was trying to show with the last example. The > Linux gdb from CentOS running under the Linuxulator gives: > > # gdb -q ./testcases/bin/mremap05 mremap05.core > Reading symbols from /opt/ltp/testcases/bin/mremap05...done. > > warning: A handler for the OS ABI "FreeBSD ELF" is not built into this > configuration > of GDB. Attempting to continue with the default i386:x86-64 settings. > > "/opt/ltp/mremap05.core": no core file handler recognizes format Weird, I think you would need to build a cross-gdb. My memory is sketchy but you may need to build a complete cross-toolchain for that. Long-long ago we actually did that but the resulting linux binaries were weird and needed branding always. Pedro.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bfe13557-55f1-a04a-1367-9cbb58075323>