Subject: Re: DEBUG/DIAGNOSTIC/LOCKDEBUG by default
To: None <tech-kern@NetBSD.org>
From: David Laight <firstname.lastname@example.org>
Date: 11/06/2007 18:27:55
On Tue, Nov 06, 2007 at 08:51:15PM +0300, Valeriy E. Ushakov wrote:
> On Tue, Nov 06, 2007 at 17:41:26 +0100, Joerg Sonnenberger wrote:
> > I know. The question was, if we can teach either the boot loader or the
> > kernel to drop the ELF debugging sections and just install the
> > netbsd.gdb all the time.
> > I bet I am not the only developer to have a "relatively good" kernel
> > around and one for testing, it is annoying if a bug in the former
> > appears when the build directory has been updated a few times in between
> > :-)
> Don't our elf loaders only load program segments marked as LOAD,
> i.e. netbsd.gdb would boot just fine as-is and the only downside would
> be extra disk/network traffic?
On some architectures (eg amd64) some information for the debugger is marked
LOADABLE - on the assumption that it won't be demand paged into memory.
David Laight: email@example.com