Deleted Added
full compact
dot.gdbinit (158820) dot.gdbinit (244040)
1# $FreeBSD: head/tools/debugscripts/dot.gdbinit 158820 2006-05-22 07:12:25Z maxim $
1# $FreeBSD: head/tools/debugscripts/dot.gdbinit 244040 2012-12-08 22:16:36Z eadler $
2# .gdbinit file for remote serial debugging.
3#
4# XXX Do not use this file directly. It contains parameters which are
5# XXX substituted by the kernel Makefile when you do a 'make gdbinit'.
6# XXX This also removes lines starting with '# XXX'.
7# XXX
8# To debug kernels, do:
9#

--- 21 unchanged lines hidden (view full) ---

31
32# Connect to remote target via a serial port.
33define tr
34# Remote debugging port
35target remote $arg0
36end
37
38document tr
2# .gdbinit file for remote serial debugging.
3#
4# XXX Do not use this file directly. It contains parameters which are
5# XXX substituted by the kernel Makefile when you do a 'make gdbinit'.
6# XXX This also removes lines starting with '# XXX'.
7# XXX
8# To debug kernels, do:
9#

--- 21 unchanged lines hidden (view full) ---

31
32# Connect to remote target via a serial port.
33define tr
34# Remote debugging port
35target remote $arg0
36end
37
38document tr
39Debug a remote system via serial or firewire interface. For example, specify 'tr /dev/cuad0' to use first serial port, or 'tr localhost:5556' for default firewire port. See also tr0, tr1 and trf commands.
39Debug a remote system via serial or firewire interface. For example, specify 'tr /dev/cuau0' to use first serial port, or 'tr localhost:5556' for default firewire port. See also tr0, tr1 and trf commands.
40end
41
42# Convenience functions. These call tr.
40end
41
42# Convenience functions. These call tr.
43# debug via cuad0
43# debug via cuau0
44define tr0
44define tr0
45tr /dev/cuad0
45tr /dev/cuau0
46end
47define tr1
46end
47define tr1
48tr /dev/cuad1
48tr /dev/cuau1
49end
50# Firewire
51define trf
52tr localhost:5556
53end
54
55document tr0
49end
50# Firewire
51define trf
52tr localhost:5556
53end
54
55document tr0
56Debug a remote system via serial interface /dev/cuad0. See also tr, tr1 and trf commands.
56Debug a remote system via serial interface /dev/cuau0. See also tr, tr1 and trf commands.
57end
58document tr1
57end
58document tr1
59Debug a remote system via serial interface /dev/cuad1. See also tr, tr0 and trf commands.
59Debug a remote system via serial interface /dev/cuau1. See also tr, tr0 and trf commands.
60end
61document trf
62Debug a remote system via firewire interface at default port 5556. See also tr, tr0 and tr1 commands.
63end
64
65# Get symbols from klds. Unfortunately, there are a number of
66# landmines involved here:
67#

--- 34 unchanged lines hidden (view full) ---

102document getsyms
103Display kldstat information for the target machine and invite user to paste it back in. This causes the symbols for the KLDs to be loaded. When doing memory debugging, use the command kldsyms instead.
104end
105
106source gdbinit.kernel
107source gdbinit.machine
108
109echo Ready to go. Enter 'tr' to connect to the remote target\n
60end
61document trf
62Debug a remote system via firewire interface at default port 5556. See also tr, tr0 and tr1 commands.
63end
64
65# Get symbols from klds. Unfortunately, there are a number of
66# landmines involved here:
67#

--- 34 unchanged lines hidden (view full) ---

102document getsyms
103Display kldstat information for the target machine and invite user to paste it back in. This causes the symbols for the KLDs to be loaded. When doing memory debugging, use the command kldsyms instead.
104end
105
106source gdbinit.kernel
107source gdbinit.machine
108
109echo Ready to go. Enter 'tr' to connect to the remote target\n
110echo with /dev/cuad0, 'tr /dev/cuad1' to connect to a different port\n
110echo with /dev/cuau0, 'tr /dev/cuau1' to connect to a different port\n
111echo or 'trf portno' to connect to the remote target with the firewire\n
112echo interface. portno defaults to 5556.\n
113echo \n
114echo Type 'getsyms' after connection to load kld symbols.\n
115echo \n
116echo If you're debugging a local system, you can use 'kldsyms' instead\n
117echo to load the kld symbols. That's a less obnoxious interface.\n
111echo or 'trf portno' to connect to the remote target with the firewire\n
112echo interface. portno defaults to 5556.\n
113echo \n
114echo Type 'getsyms' after connection to load kld symbols.\n
115echo \n
116echo If you're debugging a local system, you can use 'kldsyms' instead\n
117echo to load the kld symbols. That's a less obnoxious interface.\n