Date: Thu, 6 Mar 2014 17:53:22 +0100 From: Dimitry Andric <dim@FreeBSD.org> To: lev@FreeBSD.org Cc: freebsd-current@freebsd.org Subject: Re: kgdb on CURRENT? Message-ID: <29A900D3-A470-4FD7-8BD8-32086429A4E5@FreeBSD.org> In-Reply-To: <1109024062.20140306203329@serebryakov.spb.ru> References: <1109024062.20140306203329@serebryakov.spb.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
--Apple-Mail=_F1775542-D502-4080-A3DB-3D4AD550DDFC Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On 06 Mar 2014, at 17:33, Lev Serebryakov <lev@freebsd.org> wrote: > CURRENT r262833, kernel from custom config (with symbols ad debugging > info), crash. >=20 > savecore says "Unable to find matching kernel" >=20 > kgdb /var/crash/vmcore.1 /boot/kerne/kernel says: >=20 > Dwarf Error: wrong version in compilation unit header (is 4, should be = 2) [in module /boot/kernel/kernel.symbols] >=20 > Is it local problem or kgdb is broken with latest clang import? No, clang 3.4 just defaults to DWARF4 format, which kgdb does not grok. Please put the following in your custom kernel configuration, similar to GENERIC: makeoptions DEBUG=3D-gdwarf-2 # Build kernel with gdb(1) = debug symbols Now on a side note, it would be very nice if our kernel debugging extensions were ported to the ports version of gdb, which is non-ancient... :-) -Dimitry --Apple-Mail=_F1775542-D502-4080-A3DB-3D4AD550DDFC Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.22 (Darwin) iEYEARECAAYFAlMYqAoACgkQsF6jCi4glqO2MgCgpt47nc38Lo9LHHx+yynNfIj2 7nsAn3XHbXNq9EkZQRtzNmKHUdlMi5mQ =L9k5 -----END PGP SIGNATURE----- --Apple-Mail=_F1775542-D502-4080-A3DB-3D4AD550DDFC--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?29A900D3-A470-4FD7-8BD8-32086429A4E5>