in rc.conf:
Code:
fsck_y_enable="YES"
dumpdir="/usr/crash"
fsck_y_enable will check your drives for problems on bootup
dumpdir is where the crash is store (you will need to mkdir /usr/crash)
compile the kernel with:
Code:
# Build kernel with gdb(1) debug symbols
makeoptions DEBUG=-g
# Don't enter the debugger for a panic. Intended for unattended operation
# where you may want to enter the debugger from the console, but still want
# the machine to recover from a panic.
# (in a nutshell, reboot if there's a panic)
options KDB_UNATTENDED
"after the build, save the kernel.debug out of the kernel build directory then you can run the debugger on the debug kernel and the crashdump later just like you'd run the debugger on a program with debug symbols and a core dump"
credit goes to franzgold for telling/helping me with all of the above..