cvs commit: src/sys/conf kern.post.mk

Kris Kennaway kris at obsecurity.org
Sun Sep 11 10:46:54 PDT 2005


On Sun, Sep 11, 2005 at 08:58:22PM +1000, Peter Jeremy wrote:
> On Sat, Sep 10, 2005 at 06:05:00PM -0700, Nate Lawson wrote:
> >David E. O'Brien wrote:
> >>  For HEAD, install a kernel with debug information if DEBUG is a kernel
> >>  config option.  It is too easy to loose the build directory and not have
> >>  symbols for kgdb to read.
> >
> >I disagree with this change.  We do not need to waste the space in /. 
> >If I'm running a debug kernel, it is based on the latest version of 
> >kernel.debug in my kernel compile dir and I know to find it there.
> 
> I'd agree with Nate here.  I agree that the debug kernel is worth
> keeping but it's not needed in /.  If you want to install it, how
> about installing it in /var/crash.
> 
> A number of people have mentioned losing the debug kernel when they do
> a rebuild.  The normal reasons for doing a rebuild are either that you
> have updated your source or you've changed your config.  In the former
> case, the old debug kernel loses some of its validity because it no
> longer matches the source code it was built from.  In the latter case,
> I would suggest that the only reason to change the kernel config is if
> you are planning on installing a new kernel, so again you don't need the
> old debug kernel.  This just leaves the relatively small window whilst
> you are building and installing the new kernel - though David has found
> that this window can unfortunately be hit.

No, I run many machines from the same few source trees.  When I
rebuild a kernel to add a patch to try and fix one of the many bugs in
FreeBSD, I lose the ability to debug the other machines when they
panic unless I remember to first save the old kernel.debug.

This change has negligible impact for those for whom it does not help,
and helps the rest of us significantly, so please just give it up.

Kris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/cvs-src/attachments/20050911/10a982e0/attachment.bin


More information about the cvs-src mailing list