Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Jul 2000 10:39:22 +0930
From:      Greg Lehey <grog@lemis.com>
To:        Ben Smithurst <ben@FreeBSD.ORG>
Cc:        doc@FreeBSD.ORG
Subject:   Re: small update to handbook about debug kernels
Message-ID:  <20000712103922.A29642@wantadilla.lemis.com>
In-Reply-To: <20000711131846.L11000@strontium.scientia.demon.co.uk>
References:  <20000711131846.L11000@strontium.scientia.demon.co.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
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.)
>
>
> -    <para>When the kernel has been built make a copy of it, say
> +    <para>When the kernel has been built, make a copy of it, say
>        <filename>kernel.debug</filename>, and then run <command>strip
> -       -g</command> on the original.  Install the original as normal.  You
> +       -g</command> 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.</para>
> +      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.</para>

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000712103922.A29642>