d5947fd154
not the intention. Rearrange "you may want to change these values" values to the top, and reduce their number as much as possible. tr macro: Require a parameter (because gdb is too stupid to understand optional parameters), and create macros tr0, tr1 and trf which call it to connect to /dev/cuaa0, /dev/cuaa1 and firewire connections respectively. Split kld symbol load into two separate macros: revision 1.5 simplified things for the /dev/mem case, but broke it for anything else. Now the simple /dev/mem version is called kldsyms, and the version for serial debugging and processor dumps is called getsyms, and still requires this irritating cut and paste. Change comments on startup to make life easier for the poor (de)bugger. |
||
---|---|---|
.. | ||
dot.gdbinit | ||
gdbinit.i386 | ||
gdbinit.kernel | ||
gdbinit.vinum | ||
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)