From owner-freebsd-hackers Sat Apr 6 23:40:16 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from resnet.uoregon.edu (resnet.uoregon.edu [128.223.122.47]) by hub.freebsd.org (Postfix) with ESMTP id B555937B400; Sat, 6 Apr 2002 23:40:12 -0800 (PST) Received: from localhost (dwhite@localhost) by resnet.uoregon.edu (8.11.3/8.10.1) with ESMTP id g377eje07650; Sat, 6 Apr 2002 23:40:45 -0800 (PST) Date: Sat, 6 Apr 2002 23:40:45 -0800 (PST) From: Doug White To: "Greg 'groggy' Lehey" Cc: Alessandro de Manzano , Alfred Perlstein , Subject: Re: Is a debug kernel slower than a non-debug one ? In-Reply-To: <20020406113033.I81917@wantadilla.lemis.com> Message-ID: <20020406233900.D6659-100000@resnet.uoregon.edu> X-All-Your-Base: are belong to us MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sat, 6 Apr 2002, Greg 'groggy' Lehey wrote: > > Note that the kernel binary with debugging symbols is left in > > /sys/compile/MYKERNEL/kernel.debug while the actual kernel is stripped > > before installation into /kernel. > > > > If the debugging kernel was actually loaded it would be gigantic :) > > No, since the transition to ELF, none of the debugging information > gets loaded into core. Try it. Huh? I know that since 3.X, the kernel with debugging symbols is NOT loaded into the actual installed, running kernel. However, you can specify a debugging kernel to kgdb as the exec-file and it will load properly. > > This is all detailed in the Handbook section on kernel debugging, > > btw. > > Hmm, that needs to be fixed, then. The Developer's Handbook, section 16, has the details. It seems to match up with my experience. Doug White | FreeBSD: The Power to Serve dwhite@resnet.uoregon.edu | www.FreeBSD.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message