Re: cvs commit: src/sys/conf kern.pre.mk

From: Scott Long <scottl_at_freebsd.org>
Date: Sun, 03 Jul 2005 01:03:37 -0000
David E. O'Brien wrote:

> obrien      2005-01-18 03:32:53 UTC
> 
>   FreeBSD src repository
> 
>   Modified files:
>     sys/conf             kern.pre.mk 
>   Log:
>   While we're building kernels -g (ie, makeoptions DEBUG=-g), use -O as it
>   provides truer debugger stack traces.  For those that want to stick with
>   -O2 kernel builds, one should probably add -fno-optimize-sibling-calls
>   so that each stack frame as a frame pointer.
>   It is semi-promissed by the Release Engineers that when RELENG_6 is
>   created we go back to -O2.
>   
>   Desired by:     scottl, jhb
>   
>   Revision  Changes    Path
>   1.61      +1 -1      src/sys/conf/kern.pre.mk

Thank you very much.  This has been shown to make debugging a whole lot
more reliable since it does a much better job at preserving the call
stack.  Oddly enough, GDB wasn't entirely to blame here =-)

Scott
Received on Sun Jul 03 2005 - 01:03:36 UTC