Re: kldload(2) and debug kernels

From: Dimitry Andric <dimitry_at_andric.com>
Date: Mon, 17 Nov 2003 21:50:52 +0100
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:

  #!/bin/sh
  kernpath=/boot/kernel
  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.

Received on Mon Nov 17 2003 - 11:51:11 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:29 UTC