kgdb modules

John Baldwin jhb at freebsd.org
Mon Feb 4 20:46:24 UTC 2013


On Monday, February 04, 2013 6:43:43 am Andriy Gapon wrote:
> on 04/02/2013 12:36 Matt Burke said the following:
> > How do I get kgdb to load kernel modules from somewhere other than
> > /boot/kernel?
> > 
> > Googling tells me I need to use asf to create a file, but I haven't managed
> > to figure out how to get kgdb use the output.
> 
> Research in the direction of set sysroot, solib-absolute-prefix,
> solib-search-path.  I would not be surprised if the ancient gdb version on which
> kgdb is based does not support some of these settings.

It supports at least some of those.  You can also load modules manually by
using the add-kld command (give it a full path to an individual module).  You
may need to use 'nosharedlibrary' to unload symbols from the "wrong" module
before add-kld will be useful however.

-- 
John Baldwin


More information about the freebsd-hackers mailing list