DragonFly BSD
DragonFly submit List (threaded) for 2006-02
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

config.8 update

From: Francis GUDIN <fgudin@xxxxxxxxx>
Date: Sun, 26 Feb 2006 21:17:36 +0100


Here's an attempt at making config(8) up to date regarding debugging
This is my very first try at using mdoc: comments are appreciated !  

--- /repo/src/usr.sbin/config/config.8	2006-02-24 00:37:48.000000000 +0100
+++ config.8	2006-02-26 20:58:55.000000000 +0100
@@ -187,49 +187,26 @@
 provides very little support for normal kernels, and a debug kernel is needed
 for any meaningful analysis.
-For reasons of history, time and space, building a debug kernel is not the
-default with
-.Dx :
-a debug kernel takes up to 30% longer to build and
-requires about 30 MB of disk storage in the build directory, compared to about 6
-MB for a non-debug kernel.
-A debug kernel is about 11 MB in size, compared to
-about 2 MB for a non-debug kernel.
-This space is used both in the root file
-system and at run time in memory.
-Use the
-.Fl g
-option to build a debug kernel.
-With this option,
-causes two kernel files to be built in the kernel build directory:
-.Bl -bullet
-.Pa kernel.debug
-is the complete debug kernel.
-.Pa kernel
-is a copy of the kernel with the debug symbols stripped off.
-This is equivalent
-to the normal non-debug kernel.
+In order to ease posting bug reports for inexperienced users and
+make the debugging environment more uniform,
+installs kernel and modules unstripped.
+Debug information is not loaded into memory, so the only impact is
+a minor growth in root file-system consumption by 10MB.
+Those wishing to install stripped down kernel and modules can specify two new
+makeoptions in their kernel config file or when they run the
+kernel-related targets to make:
+The installed kernel and modules will be stripped of debug info.
+The installed modules will be stripped of debug info. The kernel will
+be left with debug info intact.
-There is currently little sense in installing and booting from a debug kernel,
-since the only tools available which use the symbols do not run on-line.
-are therefore two options for installing a debug kernel:
-.Bl -bullet
-.Dq Li "make install"
-.Pa kernel
-in the root file system.
-.Dq Li "make install.debug"
-.Pa kernel.debug
-in the root file system.
+Backup copies of the kernel and modules are automatically stripped of
+their debug information by
+.Xr objcopy 1 .
 .Bl -tag -width ".Pa /sys/ Ns Va ARCH Ns Pa /conf/files. Ns Ar SYSTEM_NAME" -compact
 .It Pa /sys/conf/files

[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]