From owner-freebsd-doc Wed Jul 12 7:15:28 2000 Delivered-To: freebsd-doc@freebsd.org Received: from scientia.demon.co.uk (scientia.demon.co.uk [212.228.14.13]) by hub.freebsd.org (Postfix) with ESMTP id 7FB8837BCC0 for ; Wed, 12 Jul 2000 07:15:20 -0700 (PDT) (envelope-from ben@scientia.demon.co.uk) Received: from strontium.scientia.demon.co.uk ([192.168.91.36] ident=exim) by scientia.demon.co.uk with esmtp (Exim 3.15 #1) id 13CMyS-000PoU-00; Wed, 12 Jul 2000 14:54:52 +0100 Received: (from ben) by strontium.scientia.demon.co.uk (Exim 3.15 #1) id 13CMyR-0002vs-00; Wed, 12 Jul 2000 14:54:51 +0100 Date: Wed, 12 Jul 2000 14:54:51 +0100 From: Ben Smithurst To: Greg Lehey Cc: doc@FreeBSD.ORG Subject: Re: small update to handbook about debug kernels Message-ID: <20000712145451.D11000@strontium.scientia.demon.co.uk> References: <20000711131846.L11000@strontium.scientia.demon.co.uk> <20000712103922.A29642@wantadilla.lemis.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="ZuvoxmZMh0nHqhEq" Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <20000712103922.A29642@wantadilla.lemis.com> Sender: owner-freebsd-doc@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org --ZuvoxmZMh0nHqhEq Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Greg Lehey wrote: > I think you should look from the viewpoint of the modern kernel:=20 >=20 > 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... Is this better: If you are using FreeBSD 3 or earlier, you should make a stripped copy of the debug kernel, rather than installing the large debug kernel itself: &prompt.root; cp kernel kernel.debug &prompt.root; strip -g kernel This stage isn't necessary, but it is recommended. (In FreeBSD 4 and later releases this step is performed automatically at the end of the kernel make process.) =20 When the kernel has been stripped, either automatically or by using the commands above, you may install it as usual by typing make install. If you install and boot the debug kernel, without stripping it as described above, symbol table lookup time for some programs will drastically increase. Note also that older releases of FreeBSD (up to but not including 3.1) used a.out kernels by default, which must have their symbol tables permanently resident in physical memory. With the larger symbol table in an unstripped debug kernel, this is wasteful. Recent FreeBSD releases use ELF kernels where this is no longer a problem. ? It's a bit longer, but has a bit more detail, I think. --=20 Ben Smithurst / ben@FreeBSD.org / PGP: 0x99392F7D --ZuvoxmZMh0nHqhEq Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: PGPfreeware 5.0i for non-commercial use MessageID: m/hJuNlHpHeZC1FDJeUP3gchNeddA3aq iQCVAwUBOWx4qSsPVtiZOS99AQGMFAP+PNc7GYKdkWUc/oG5RMsjA7Id8JIheYPl Cek2N0FXKvGb6F3Vmrf+HMrYE3cdrvP7nbdWLNR6MAdotDybhzz0jn6HxmH+jb39 QqyxBERywvfvsjvbdljlCsKM8ltYPHh5Tzer1z1KbRg/OUlnnHUVJRwa1Va7ANFd rjJcmgnpNEs= =mDEF -----END PGP SIGNATURE----- --ZuvoxmZMh0nHqhEq-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message