From c0005c29dc40d2f3433fd167d8697eb4ba73e0c9 Mon Sep 17 00:00:00 2001 From: dylanr Date: Wed, 1 Sep 2010 19:24:44 -0700 Subject: [PATCH] Correct name for kenel file is kern.x --- docs/developer/KmodDebugging.mdwn | 32 ++++++++++++++++++++----------- 1 file changed, 21 insertions(+), 11 deletions(-) diff --git a/docs/developer/KmodDebugging.mdwn b/docs/developer/KmodDebugging.mdwn index 769dcb78..f6677137 100644 --- a/docs/developer/KmodDebugging.mdwn +++ b/docs/developer/KmodDebugging.mdwn @@ -1,22 +1,32 @@ +* Get your coredump. -* Get your coredump. -* Start kgdb: `kgdb /var/crash/kernel.X /var/crash/vmcore.X`. +* Start kgdb: `kgdb /var/crash/kern.X /var/crash/vmcore.X`. -* Load some handy helper commands when you're at the kgdb prompt: `source /usr/src/test/debug/gdb.kernel`. -* Get the kld statistics from the kernel: `kldstat` at the kgdb prompt. +* Load some handy helper commands when you're at the kgdb prompt: `source /usr/src/test/debug/gdb.kernel`. -* Background kgdb (^Z). -* Execute a helper utility to create another gdb script: `asf -s /modules`. +* Get the kld statistics from the kernel: `kldstat` at the kgdb prompt. -* Paste the output from the kgdb 'kldstat' command above. -* Signal asf that you're ready (^D). +* Background kgdb (^Z). -* Foreground kgdb again: `fg`. -* Load the gdb script created by asf above to load kmod symbols: `source .asf` at the kgdb prompt. +* Execute a helper utility to create another gdb script: `asf -s /modules`. + + +* Paste the output from the kgdb 'kldstat' command above. + + +* Signal asf that you're ready (^D). + + +* Foreground kgdb again: `fg`. + + +* Load the gdb script created by asf above to load kmod symbols: `source .asf` at the kgdb prompt. + + +* Print, list, backtrace to your heart's content! Be sure to have debug symbols compiled with your modules though ;). -* Print, list, backtrace to your heart's content! Be sure to have debug symbols compiled with your modules though ;). -- 2.41.0