Date: Sun, 2 Jul 2000 11:14:47 -0700 (PDT) From: jblaine@mitre.org To: freebsd-gnats-submit@FreeBSD.org Subject: docs/19648: handbook mentions stripping kernel.debug, but this is done for you Message-ID: <20000702181447.DA77337BE15@hub.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 19648 >Category: docs >Synopsis: handbook mentions stripping kernel.debug, but this is done for you >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-doc >State: open >Quarter: >Keywords: >Date-Required: >Class: doc-bug >Submitter-Id: current-users >Arrival-Date: Sun Jul 02 11:20:00 PDT 2000 >Closed-Date: >Last-Modified: >Originator: Jeff Blaine >Release: 4.0-RELEASE >Organization: The MITRE Corporation >Environment: FreeBSD kickflop 4.0-RELEASE FreeBSD 4.0-RELEASE #4: Sun Jul 2 12:37:52 EDT 2000 root@kickflop:/usr/src/sys/compile/BUNK i386 >Description: In the section of the handbook regarding debugging kernel dumps, the directions tell you to enable 'makeoptions DEBUG=-g' in your /usr/src/sys/BLAH kernel config file, build the new kernel, and then strip it. When I built my kernel with -g, the kernel was stripped as a final part of the make process. >How-To-Repeat: Build a 4.0-RELEASE kernel with 'makeoptions DEBUG=-g' and examine the final line of the build process. >Fix: Remove the following paragraph from the appropriate handbook section: ======================================================================= 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 may also install the unstripped kernel, but symbol table lookup time for some programs will drastically increase, and since the whole kernel is loaded entirely at boot time and cannot be swapped out later, several megabytes of physical memory will be wasted. ======================================================================= Additionally, change the following text to refer to 'kernel' and not 'kernel.debug': ====================================================================== Now, after a crash dump, go to /sys/compile/WHATEVER and run kgdb. From kgdb do: symbol-file kernel.debug exec-file /var/crash/kernel.0 core-file /var/crash/vmcore.0 ====================================================================== >Release-Note: >Audit-Trail: >Unformatted: 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?20000702181447.DA77337BE15>