dot.gdbinit revision 122033
1# $FreeBSD: head/tools/debugscripts/dot.gdbinit 122033 2003-11-04 06:38:37Z green $
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
19# This should be the path of the real modules directory.
20shell asf -f -k MODPATH
21source .asf
22end
23
24# End of things you're likely to need to change.
25
26set remotetimeout 1
27set complaints 1
28set print pretty
29dir ../../..
30document tr
31Attach to a remote kernel via serial port
32end
33
34source gdbinit.kernel
35source gdbinit.vinum
36source gdbinit.machine
37
38echo Ready to go.  Enter 'tr' to connect to remote target\n
39echo and 'getsyms' after connection to load kld symbols.\n
40