4 * Start kgdb: `kgdb /var/crash/kern.X /var/crash/vmcore.X`.
7 * Load some handy helper commands when you're at the kgdb prompt: `source /usr/src/test/debug/gdb.kernel`.
10 * Get the kld statistics from the kernel: `kldstat` at the kgdb prompt.
13 * Background kgdb (^Z).
16 * Execute a helper utility to create another gdb script: `asf -s /modules`.
19 * Paste the output from the kgdb 'kldstat' command above.
22 * Signal asf that you're ready (^D).
25 * Foreground kgdb again: `fg`.
28 * Load the gdb script created by asf above to load kmod symbols: `source .asf` at the kgdb prompt.
31 * Print, list, backtrace to your heart's content! Be sure to have debug symbols compiled with your modules though ;).