dot.gdbinit revision 115926
1# $FreeBSD: head/tools/debugscripts/dot.gdbinit 115926 2003-06-07 01:01:42Z grog $ 2# .gdbinit file for remote serial debugging. 3# see gdbinit(9) for further details. 4# 5# The following lines (down to "end" comment) may need to be changed 6file kernel.debug 7set output-radix 16 8set height 70 9set width 120 10 11# Connect to remote target 12define tr 13set remotebaud 9600 14# Remote debugging port 15target remote /dev/cuaa0 16end 17 18# Get symbols from klds. This is a little fiddly, but very fast. 19define getsyms 20kldstat 21echo Select the list above with the mouse, paste into the screen\n 22echo and then press ^D. Yes, this is annoying.\n 23# This should be the path of the real modules directory. 24shell asf modules/src/FreeBSD/5-CURRENT-ZAPHOD/src/sys/modules 25source .asf 26end 27 28# End of things you're likely to need to change. 29 30set remotetimeout 1 31set complaints 1 32set print pretty 33dir ../../.. 34document tr 35Attach to a remote kernel via serial port 36end 37 38source gdbinit.kernel 39source gdbinit.vinum 40 41# Attach to the remote kernel 42tr 43# And get the symbols from klds 44getsyms 45