FreeBSD source tree
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
John-Mark Gurney af59394536 since kld_deb.py was removed a while back, this script isn't useful 1 year ago
..
README Assorted grammar, spelling and punctuation fixes. 6 years ago
dot.gdbinit A number of places in the source tree still reference cuad.* after 9 years ago
gdbinit.i386 Spelling fixes for tools/ 10 years ago
gdbinit.kernel Enhance the 'ps' command so that it prints a line per proc and a line 2 years ago
netstat-anr.gdb Remove debugging code that sneaked in. 7 years ago

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,
automatically extracts the path to the kernel source, runs gdb to extract
information about kernel modules loaded, and then reruns gdb loading the
necessary symbols for the modules. You need to make sure you build the
modules w/ debugging symbols separately to get things to work.