:Once you have that file in the right place, reload your gdb session
:and type 'kldstat' inside it. The output of that gdb command should
:be identical to that of the real kldstat(8) utility. Save the output
:of the previous action into a a file; we refer to it as "some-file"
:
:Next step is to invoke the asf(8) utility. The job of this program
:is to generate a gdb command file with the right start addresses for
:loading the debug-enabled KLD files:
:
: # cat some-file | asf -f -s -x /path-to-modules asf.out
: # gdb -k -q /path-to-kernel /path-to-core
: ...
: (kgdb) source asf.out
: (kgdb) bt
:
:Provided asf(8) finds your modules, this will give correct start
:addresses for loading the kernel modules symbols. I have been
:meaning to outline this for a while now, finally got the chance.
:
:I am pretty sure I haven't missed any vital steps, so if this works
:please do provide a verification for others.
:
:Regards,
:
:Hiten Pandya
This is really beneficial information, could you add it to the Wiki?
-Matt
Matthew Dillon
<[EMAIL PROTECTED]>