From owner-freebsd-doc Tue Jul 11 18: 9:32 2000 Delivered-To: freebsd-doc@freebsd.org Received: from wantadilla.lemis.com (wantadilla.lemis.com [192.109.197.80]) by hub.freebsd.org (Postfix) with ESMTP id D577C37B5E1; Tue, 11 Jul 2000 18:09:24 -0700 (PDT) (envelope-from grog@wantadilla.lemis.com) Received: (from grog@localhost) by wantadilla.lemis.com (8.9.3/8.9.3) id KAA29693; Wed, 12 Jul 2000 10:39:22 +0930 (CST) (envelope-from grog) Date: Wed, 12 Jul 2000 10:39:22 +0930 From: Greg Lehey To: Ben Smithurst Cc: doc@FreeBSD.ORG Subject: Re: small update to handbook about debug kernels Message-ID: <20000712103922.A29642@wantadilla.lemis.com> References: <20000711131846.L11000@strontium.scientia.demon.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre2i In-Reply-To: <20000711131846.L11000@strontium.scientia.demon.co.uk> Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-418-838-708 WWW-Home-Page: http://www.lemis.com/~grog X-PGP-Fingerprint: 6B 7B C3 8C 61 CD 54 AF 13 24 52 F8 6D A4 95 EF Sender: owner-freebsd-doc@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Tuesday, 11 July 2000 at 13:18:46 +0100, Ben Smithurst wrote: > Hi, > > I'd like to commit this shortly. Any objections, either on documentation > quality or the technical accuracy? (that's why -hackers is included.) > > > - When the kernel has been built make a copy of it, say > + When the kernel has been built, make a copy of it, say > kernel.debug, and then run strip > - -g on the original. Install the original as normal. You > + -g on the original. Install the original as normal. > + Note that from FreeBSD 4.0-RELEASE onwards, these two steps are > + performed automatically, so you should not execute them yourself. > + On all FreeBSD releases, you > may also install the unstripped kernel, but symbol table lookup time for > - some programs will drastically increase, and since the whole kernel is > + some programs will drastically increase. With an a.out kernel, > + since the whole kernel is > loaded entirely at boot time and cannot be swapped out later, several > - megabytes of physical memory will be wasted. > + megabytes of physical memory will also be wasted. However, this should not > + be a problem for most users, as ELF has been the default format for > + kernels since FreeBSD 3.1-RELEASE. I think you should look from the viewpoint of the modern kernel: If you are using version 2 or 3 of FreeBSD, you will need to strip the kernel manually... Note that if you run an a.out kernel with debugging symbols, the whole kernel will be loaded into memory... Greg -- Finger grog@lemis.com for PGP public key See complete headers for address and phone numbers To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message