dot.gdbinit (137206) | dot.gdbinit (137882) |
---|---|
1# $FreeBSD: head/tools/debugscripts/dot.gdbinit 137206 2004-11-04 13:34:06Z phk $ | 1# $FreeBSD: head/tools/debugscripts/dot.gdbinit 137882 2004-11-19 03:51:12Z obrien $ |
2# .gdbinit file for remote serial debugging. 3# see gdbinit(9) for further details. 4# 5# XXX Do not use this file directly. It contains parameters which are 6# XXX substituted by the kernel Makefile when you do a 'make gdbinit'. 7# XXX This also removes lines starting with '# XXX'. 8# XXX 9# To debug kernels, do: --- 22 unchanged lines hidden (view full) --- 32 33# Connect to remote target via a serial port. 34define tr 35# Remote debugging port 36target remote $arg0 37end 38 39document tr | 2# .gdbinit file for remote serial debugging. 3# see gdbinit(9) for further details. 4# 5# XXX Do not use this file directly. It contains parameters which are 6# XXX substituted by the kernel Makefile when you do a 'make gdbinit'. 7# XXX This also removes lines starting with '# XXX'. 8# XXX 9# To debug kernels, do: --- 22 unchanged lines hidden (view full) --- 32 33# Connect to remote target via a serial port. 34define tr 35# Remote debugging port 36target remote $arg0 37end 38 39document tr |
40Debug a remote system via serial or firewire interface. For example, specify 'tr /dev/cuaa0' to use first serial port, or 'tr localhost:5556' for default firewire port. See also tr0, tr1 and trf commands. | 40Debug 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. |
41end 42 43# Convenience functions. These call tr. | 41end 42 43# Convenience functions. These call tr. |
44# debug via cuaa0 | 44# debug via cuad0 |
45define tr0 | 45define tr0 |
46tr /dev/cuaa0 | 46tr /dev/cuad0 |
47end 48define tr1 | 47end 48define tr1 |
49tr /dev/cuaa1 | 49tr /dev/cuad1 |
50end 51# Firewire 52define trf 53tr localhost:5556 54end 55 56document tr0 | 50end 51# Firewire 52define trf 53tr localhost:5556 54end 55 56document tr0 |
57Debug a remote system via serial interface /dev/cuaa0. See also tr, tr1 and trf commands. | 57Debug a remote system via serial interface /dev/cuad0. See also tr, tr1 and trf commands. |
58end 59document tr1 | 58end 59document tr1 |
60Debug a remote system via serial interface /dev/cuaa1. See also tr, tr0 and trf commands. | 60Debug a remote system via serial interface /dev/cuad1. See also tr, tr0 and trf commands. |
61end 62document trf 63Debug a remote system via firewire interface at default port 5556. See also tr, tr0 and tr1 commands. 64end 65 66# Get symbols from klds. Unfortunately, there are a number of 67# landmines involved here: 68# --- 34 unchanged lines hidden (view full) --- 103document getsyms 104Display 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. 105end 106 107source gdbinit.kernel 108source gdbinit.machine 109 110echo Ready to go. Enter 'tr' to connect to the remote target\n | 61end 62document trf 63Debug a remote system via firewire interface at default port 5556. See also tr, tr0 and tr1 commands. 64end 65 66# Get symbols from klds. Unfortunately, there are a number of 67# landmines involved here: 68# --- 34 unchanged lines hidden (view full) --- 103document getsyms 104Display 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. 105end 106 107source gdbinit.kernel 108source gdbinit.machine 109 110echo Ready to go. Enter 'tr' to connect to the remote target\n |
111echo with /dev/cuaa0, 'tr /dev/cuaa1' to connect to a different port\n | 111echo with /dev/cuad0, 'tr /dev/cuad1' to connect to a different port\n |
112echo or 'trf portno' to connect to the remote target with the firewire\n 113echo interface. portno defaults to 5556.\n 114echo \n 115echo Type 'getsyms' after connection to load kld symbols.\n 116echo \n 117echo If you're debugging a local system, you can use 'kldsyms' instead\n 118echo to load the kld symbols. That's a less obnoxious interface.\n | 112echo or 'trf portno' to connect to the remote target with the firewire\n 113echo interface. portno defaults to 5556.\n 114echo \n 115echo Type 'getsyms' after connection to load kld symbols.\n 116echo \n 117echo If you're debugging a local system, you can use 'kldsyms' instead\n 118echo to load the kld symbols. That's a less obnoxious interface.\n |