freebsd-nq/gnu/usr.bin
John Baldwin 933785a027 Add a new 'add-kld <kld>' command to kgdb to make it easier to analyze
crash dumps with kernel modules.  The command is basically a wrapper
around add-symbol-file except that it uses the kernel linker data
structures and the ELF section headers of the kld to calculate the
section addresses add-symbol-file needs.

The 'kld' parameter may either be an absolute path or a relative path.
kgdb looks for the kld in several locations checking for variants with
".symbols" or ".debug" suffixes in each location.  The first location it
tries is just opening the specified path (this handles absolute paths and
looks for the kld relative to the current directory otherwise).  Next
it tries to find the module in the same directory of the kernel image
being used.  If that fails it extracts the kern.module_path from the
kernel being debugged and looks in each of those paths.

The upshot is that for the common cases of debugging /boot/kernel/kernel
where the module is in either /boot/kernel or /boot/modules one can merely
do 'add-kld foo.ko'.

MFC after:	1 week
2008-01-17 21:43:12 +00:00
..
bc Reimplementation of world/kernel build options. For details, see: 2006-03-17 18:54:44 +00:00
binutils Force -O1 compilation when targeted for ia64. GCC 4 generates 2007-09-26 01:31:28 +00:00
cc Use LC_ALL=C before awk generating "optionlist" 2007-11-18 11:59:44 +00:00
cpio Compile with -DHAVE_LSTAT since, for whatever reason, the configure script 2005-10-06 09:49:37 +00:00
cvs Use a phony .POSIX target. This seems to be the way to 2008-01-16 17:16:36 +00:00
dc Remove getopt*.c, we already have compatible getopt_long() in libc 2004-02-17 01:34:53 +00:00
dialog Reimplementation of world/kernel build options. For details, see: 2006-03-17 18:54:44 +00:00
diff style.Makefile(5) 2007-10-12 18:03:00 +00:00
diff3 Update build skeleton after diffutils 2.8.7 update. 2007-06-15 07:09:34 +00:00
gdb Add a new 'add-kld <kld>' command to kgdb to make it easier to analyze 2008-01-17 21:43:12 +00:00
gperf Remove getopt*.c, we already have compatible getopt_long() in libc 2004-02-17 01:49:20 +00:00
grep Add the -P option back, but with a note that it is not supported on FreeBSD. 2006-10-11 09:52:32 +00:00
groff Tweak -lpmc's name. 2007-11-27 10:00:33 +00:00
man Fix possible uninitialized variable insert due to previous commit. 2007-09-25 21:41:22 +00:00
patch Get rid of a spurious "the". 2004-03-18 20:36:14 +00:00
rcs Remove kludges intended to support src trees with partial obj trees. 2005-06-10 06:12:53 +00:00
sdiff Update build skeleton after diffutils 2.8.7 update. 2007-06-15 07:09:34 +00:00
send-pr Don't lie about saved reports. 2007-06-02 18:06:08 +00:00
sort style.Makefile(5) 2007-10-12 18:15:40 +00:00
texinfo Catch up with the demise of /usr/X11R6 2007-09-19 14:21:18 +00:00
Makefile Reenable cvs with the build. 2008-01-13 06:56:31 +00:00
Makefile.inc