opnsense-src/gnu/usr.bin/gdb
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
..
arch Add thread support for arm. 2007-11-17 21:30:03 +00:00
doc Update to readline 5.0 2004-10-18 10:13:24 +00:00
gdb Remove mention of the -k and -wcore options because they don't 2005-02-15 07:13:51 +00:00
gdbserver bring in the necessary changes to make gdbserver compile and work (at 2006-04-06 22:24:01 +00:00
gdbtui Use the system gnuregex library vs. building GNU regex bits into libiberty 2005-02-14 12:10:14 +00:00
kgdb Add a new 'add-kld <kld>' command to kgdb to make it easier to analyze 2008-01-17 21:43:12 +00:00
libgdb Avoid writing uninitialized stack data into a thread's MMX/SSE state by 2007-02-20 18:10:13 +00:00
Makefile Turn on gdbserver for the arch that supports it.. 2006-10-21 17:27:36 +00:00
Makefile.inc Start the dreaded NOFOO -> NO_FOO conversion. 2004-12-21 08:47:35 +00:00