kldload(2) and debug kernels

Dimitry Andric dimitry at andric.com
Mon Nov 17 12:51:11 PST 2003

On 2003-11-17 at 18:47:28 Doug White wrote:

> If you give a specific path to a module then it will load that module.

No. It will not load arbitrary files, but _only_ files that end in
".ko". I've encountered this before, and therefore I always simply
follow a make installkernel.debug by a script like:

  for i in ${kernpath}/*.debug; do mv $i `echo $i | sed s/\.debug$//`; done
  rm -fv ${kernpath}/linker.hints
  kldxref -v ${kernpath}

This is simply because I almost never keep a copy of /usr/obj after
installing, and it can be handy to debug later. I assume that all
debugging info is simply ignore by the boot and kernel module loaders,
but it can later be used by kgdb.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 183 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20031117/9c2605cb/attachment.bin

More information about the freebsd-current mailing list