Subject: Re: CFLAGS
To: Steven M. Bellovin <smb@cs.columbia.edu>
From: David Laight <david@l8s.co.uk>
List: tech-kern
Date: 11/10/2007 14:48:30
On Fri, Nov 09, 2007 at 03:57:58PM +0000, Steven M. Bellovin wrote:
> On Fri, 9 Nov 2007 14:16:19 +0000
> Matthias Scheler <tron@zhadum.org.uk> wrote:
> 
> > On Thu, Nov 08, 2007 at 08:21:00PM +0100, Pavel Cahyna wrote:
> > > > And use the following kernel config option, if you want the debug
> > > > information:
> > > > 	makeoptions DEBUG="-g"
> > > 
> > > ... which creates a big netbsd.gdb with debugging information and a
> > > small netbsd without them.
> > 
> > Don't forget keep the "netbsd.gdb" around which will be very handy
> > when having a look at a kernel crash dump later.
> > 
> Perhaps 'make install' in the kernel build directory should copy
> both /netbsd and /netbsd.gdb to /, and savecore should copy both
> to /var/crash.

Which actually bets the question of the sanity of having two files.
(Yes, you may want to strip some non-loadable info for small systems,
but in general you don't need to worry that much.)

	David

-- 
David Laight: david@l8s.co.uk