freebsd-skq/tools/debugscripts
maxim 5363e73b8c o Correct comments: remove a reference to non-existent gdbinit.9 man page;
correct a path to the kernel build directory; gdb lost -k key.

Reviewed by:	grog
MFC after:	1 week
2006-05-22 07:12:25 +00:00
..
dot.gdbinit o Correct comments: remove a reference to non-existent gdbinit.9 man page; 2006-05-22 07:12:25 +00:00
gdbinit.i386 Remove the uarea column from the DDB 'ps' display, and from grog's gdb 2004-11-20 02:32:42 +00:00
gdbinit.kernel Remove the uarea column from the DDB 'ps' display, and from grog's gdb 2004-11-20 02:32:42 +00:00
kgdb I forgot to commit this fix that is now kgdb aware... 2005-03-20 02:08:21 +00:00
kld_deb.py I forgot to commit this fix that is now kgdb aware... 2005-03-20 02:08:21 +00:00
README

$FreeBSD$

This directory contains gdb macros for kernel debugging.  When you
build a debug kernel, the target "gdbinit" in the kernel Makefile will
create the correct .gdbinit files in the kernel build directory.  To
perform kernel debugging, you would do:

  # cd /usr/obj/usr/src/sys/GENERIC  (or name of kernel config)
  # make gdbinit
  # gdb kernel.debug
  This GDB was configured as "i386-undermydesk-freebsd"...
  Ready to go.  Enter 'tr' to connect to remote target
  and 'getsyms' after connection to load kld symbols.
  (kgdb) 


This directory also contains a kgdb script that given a crash dump number
automaticly extract the path to the kernel source, run gdb to extract
information about kernel modules loaded, and then rerun gdb loading the
necessary symbols for the modules.  You need to make sure you build the
modules w/ debugging symbols seperately to get things to work.