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

Scott Long scottl at freebsd.org
Sun Jul 3 01:03:20 GMT 2005


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



More information about the cvs-src mailing list