Date: Mon, 17 Jan 2005 20:36:00 -0700 From: Scott Long <scottl@freebsd.org> To: "David E. O'Brien" <obrien@freebsd.org> Cc: cvs-all@freebsd.org Subject: Re: cvs commit: src/sys/conf kern.pre.mk Message-ID: <41EC8420.2010505@freebsd.org> In-Reply-To: <200501180332.j0I3Wrw3004466@repoman.freebsd.org> References: <200501180332.j0I3Wrw3004466@repoman.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?41EC8420.2010505>