2003-06-07 01:01:42 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
# .gdbinit file for remote serial debugging.
|
|
|
|
# see gdbinit(9) for further details.
|
|
|
|
#
|
|
|
|
# The following lines (down to "end" comment) may need to be changed
|
|
|
|
set output-radix 16
|
|
|
|
set height 70
|
|
|
|
set width 120
|
|
|
|
|
|
|
|
# Connect to remote target
|
|
|
|
define tr
|
|
|
|
set remotebaud 9600
|
|
|
|
# Remote debugging port
|
|
|
|
target remote /dev/cuaa0
|
|
|
|
end
|
|
|
|
|
|
|
|
# Get symbols from klds. This is a little fiddly, but very fast.
|
|
|
|
define getsyms
|
|
|
|
kldstat
|
|
|
|
echo Select the list above with the mouse, paste into the screen\n
|
|
|
|
echo and then press ^D. Yes, this is annoying.\n
|
|
|
|
# This should be the path of the real modules directory.
|
2003-06-12 08:11:08 +00:00
|
|
|
shell asf MODPATH
|
2003-06-07 01:01:42 +00:00
|
|
|
source .asf
|
|
|
|
end
|
|
|
|
|
|
|
|
# End of things you're likely to need to change.
|
|
|
|
|
|
|
|
set remotetimeout 1
|
|
|
|
set complaints 1
|
|
|
|
set print pretty
|
|
|
|
dir ../../..
|
|
|
|
document tr
|
|
|
|
Attach to a remote kernel via serial port
|
|
|
|
end
|
|
|
|
|
|
|
|
source gdbinit.kernel
|
|
|
|
source gdbinit.vinum
|
2003-06-07 01:15:07 +00:00
|
|
|
source gdbinit.machine
|
2003-06-07 01:01:42 +00:00
|
|
|
|
2003-06-08 06:08:28 +00:00
|
|
|
echo Ready to go. Enter 'tr' to connect to remote target\n
|
|
|
|
echo and 'getsyms' after connection to load kld symbols.\n
|