On 06 Mar 2014, at 17:33, Lev Serebryakov <l...@freebsd.org> wrote: > CURRENT r262833, kernel from custom config (with symbols ad debugging > info), crash. > > savecore says "Unable to find matching kernel" > > kgdb /var/crash/vmcore.1 /boot/kerne/kernel says: > > Dwarf Error: wrong version in compilation unit header (is 4, should be 2) [in > module /boot/kernel/kernel.symbols] > > 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=-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
Description: Message signed with OpenPGP using GPGMail