diff options
| author | svn2git <svn2git@FreeBSD.org> | 1994-07-01 08:00:00 +0000 |
|---|---|---|
| committer | svn2git <svn2git@FreeBSD.org> | 1994-07-01 08:00:00 +0000 |
| commit | 5e0e9b99dc3fc0ecd49d929db0d57c784b66f481 (patch) | |
| tree | e779b5a6edddbb949b7990751b12d6f25304ba86 /contrib/FAQ/OTHER-FAQS/FreeBSD.kdebug.FAQ | |
| parent | a16f65c7d117419bd266c28a1901ef129a337569 (diff) | |
Diffstat (limited to 'contrib/FAQ/OTHER-FAQS/FreeBSD.kdebug.FAQ')
| -rw-r--r-- | contrib/FAQ/OTHER-FAQS/FreeBSD.kdebug.FAQ | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/contrib/FAQ/OTHER-FAQS/FreeBSD.kdebug.FAQ b/contrib/FAQ/OTHER-FAQS/FreeBSD.kdebug.FAQ new file mode 100644 index 000000000000..150fb8aac735 --- /dev/null +++ b/contrib/FAQ/OTHER-FAQS/FreeBSD.kdebug.FAQ @@ -0,0 +1,33 @@ + Kernel debugging FAQ + FreeBSD + +Last modified: $Id: FreeBSD.kdebug.FAQ,v 1.1 1994/06/12 15:12:21 gclarkii Exp $ + +Here are some instructions for getting kernel debugging working on +a crash dump, it assumes that you have enough swap space for a crash +dump. + +*** Start *** + +Config you're kernel using config -g + +Remove ${STRIP} -x $@; from the Makefile for the kernel so it doesn't +get stripped. + +When the kernel's been built make a copy of it, say 386BSD.debug, and +then run strip -x on the original. Install the original as normal. + +Now, after a crash dump, go to /sys/compile/WHATEVER and run kgdb. From kgdb +do: + +symbol-file 386BSD.debug +exec-file /var/crash/system.0 +core-file /var/crash/ram.0 + +and viola, you can debug the crash dump using the kernel sources just like +you can for any other program. + + + + Paul Richards, FreeBSD core team member. + |
