kgdb on CURRENT?

Dimitry Andric dim at FreeBSD.org
Thu Mar 6 16:53:41 UTC 2014


On 06 Mar 2014, at 17:33, Lev Serebryakov <lev at 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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 203 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.freebsd.org/pipermail/freebsd-current/attachments/20140306/7770259d/attachment.sig>


More information about the freebsd-current mailing list