dot.gdbinit revision 115926
191094Sdes# $FreeBSD: head/tools/debugscripts/dot.gdbinit 115926 2003-06-07 01:01:42Z grog $ 2115619Sdes# .gdbinit file for remote serial debugging. 3228690Sdes# see gdbinit(9) for further details. 491094Sdes# 591094Sdes# The following lines (down to "end" comment) may need to be changed 691094Sdesfile kernel.debug 799158Sdesset output-radix 16 899158Sdesset height 70 999158Sdesset width 120 1091094Sdes 1191094Sdes# Connect to remote target 1291094Sdesdefine tr 1391094Sdesset remotebaud 9600 1491094Sdes# Remote debugging port 1591094Sdestarget remote /dev/cuaa0 1691094Sdesend 1791094Sdes 1891094Sdes# Get symbols from klds. This is a little fiddly, but very fast. 1991094Sdesdefine getsyms 2091094Sdeskldstat 2191094Sdesecho Select the list above with the mouse, paste into the screen\n 2291094Sdesecho and then press ^D. Yes, this is annoying.\n 2391094Sdes# This should be the path of the real modules directory. 2491094Sdesshell asf modules/src/FreeBSD/5-CURRENT-ZAPHOD/src/sys/modules 2591094Sdessource .asf 2691094Sdesend 2791094Sdes 2891094Sdes# End of things you're likely to need to change. 2991094Sdes 3091094Sdesset remotetimeout 1 3191094Sdesset complaints 1 3291094Sdesset print pretty 3391094Sdesdir ../../.. 3491094Sdesdocument tr 35255376SdesAttach to a remote kernel via serial port 3691094Sdesend 3791094Sdes 38228690Sdessource gdbinit.kernel 39228690Sdessource gdbinit.vinum 40228690Sdes 41228690Sdes# Attach to the remote kernel 4291094Sdestr 4391094Sdes# And get the symbols from klds 4491094Sdesgetsyms 4591094Sdes