freebsd-dev/gnu/usr.bin/gdb/kgdb
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
..
kgdb.1 Bump document date for the previous change. 2006-10-21 17:39:35 +00:00
kgdb.h Add a new 'add-kld <kld>' command to kgdb to make it easier to analyze 2008-01-17 21:43:12 +00:00
kthr.c Teach kgdb how to handle double fault frames on i386: 2007-11-16 22:17:37 +00:00
main.c Add a new 'add-kld <kld>' command to kgdb to make it easier to analyze 2008-01-17 21:43:12 +00:00
Makefile Restore r1.2 change to use TARGET_ARCH. 2005-02-20 23:06:03 +00:00
trgt_amd64.c NMIs now come from 'nmi_calltrap' rather than 'calltrap', so teach 'kgdb' 2007-08-22 20:28:13 +00:00
trgt_arm.c Trim trailing whitespace. 2006-10-16 20:07:23 +00:00
trgt_i386.c Teach kgdb how to handle double fault frames on i386: 2007-11-16 22:17:37 +00:00
trgt_ia64.c Unwind across trap frames. Handles all entry points, except the EPC 2005-09-11 00:47:03 +00:00
trgt_powerpc.c Trim trailing whitespace. 2006-10-16 20:07:23 +00:00
trgt_sparc64.c Claim frames corresponding to tl(0|1)_intr and tl0_trap as well. I 2005-09-11 06:52:14 +00:00
trgt.c Add a new 'add-kld <kld>' command to kgdb to make it easier to analyze 2008-01-17 21:43:12 +00:00