README revision 123709
1123709Sgrog$FreeBSD: head/tools/debugscripts/README 123709 2003-12-22 00:01:53Z grog $
2123709Sgrog
3123709SgrogThis directory contains gdb macros for kernel debugging.  When you
4123709Sgrogbuild a debug kernel, the target "gdbinit" in the kernel Makefile will
5123709Sgrogcreate the correct .gdbinit files in the kernel build directory.  To
6123709Sgrogperform kernel debugging, you would do:
7123709Sgrog
8123709Sgrog  # cd /usr/obj/usr/src/sys/GENERIC  (or name of kernel config)
9123709Sgrog  # make gdbinit
10123709Sgrog  # gdb kernel.debug
11123709Sgrog  This GDB was configured as "i386-undermydesk-freebsd"...
12123709Sgrog  Ready to go.  Enter 'tr' to connect to remote target
13123709Sgrog  and 'getsyms' after connection to load kld symbols.
14123709Sgrog  (kgdb) 
15123709Sgrog
16123709Sgrog
17