dot.gdbinit revision 115928
1# $FreeBSD: head/tools/debugscripts/dot.gdbinit 115928 2003-06-07 01:15:07Z 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
6set output-radix 16
7set height 70
8set width 120
9
10# Connect to remote target
11define tr
12set remotebaud 9600
13# Remote debugging port
14target remote /dev/cuaa0
15end
16
17# Get symbols from klds.  This is a little fiddly, but very fast.
18define getsyms
19kldstat
20echo Select the list above with the mouse, paste into the screen\n
21echo and then press ^D.  Yes, this is annoying.\n
22# This should be the path of the real modules directory.
23shell asf modules/src/FreeBSD/5-CURRENT-ZAPHOD/src/sys/modules 
24source .asf
25end
26
27# End of things you're likely to need to change.
28
29set remotetimeout 1
30set complaints 1
31set print pretty
32dir ../../..
33document tr
34Attach to a remote kernel via serial port
35end
36
37source gdbinit.kernel
38source gdbinit.vinum
39source gdbinit.machine
40
41echo Ready to go.  Enter 'tr' to connect to remote target
42echo and 'getsyms' after connection to load kld symbols.
43