Subject: Re: DEBUG/DIAGNOSTIC/LOCKDEBUG by default
To: None <tech-kern@NetBSD.org>
From: Joerg Sonnenberger <firstname.lastname@example.org>
Date: 11/06/2007 16:46:14
On Tue, Nov 06, 2007 at 02:49:41PM +0000, Andrew Doran wrote:
> On a related note we're restricted when it comes to post-mortem analysis. I
> think that minidumps, multi-CPU support in the core file format and limited
> debug symbols in the kernel binary would go a long way to solving that.
What about actually installing the kernel with -g by default? How much
work is it to teach either the kernel or the boot loader to drop the
debug sections in the kernel image? DragonFly moved to this a while ago
and it was quite helpful to avoid the "core dump and no debug kernel at
hand" problem. The size of my custom kernel grows from 5.6MB to 22.7MB,
but that is mostly OK. I would at least consider to make building the
kernel with -g the default, whether or not we install it.