Re: kgdb on CURRENT?
--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--
討論串 (同標題文章)