diff options
author | John Baldwin <jhb@FreeBSD.org> | 2000-09-11 04:33:36 +0000 |
---|---|---|
committer | John Baldwin <jhb@FreeBSD.org> | 2000-09-11 04:33:36 +0000 |
commit | a0e1678488ff490cd7232b5373e8d9f460ee9d68 (patch) | |
tree | 64fe1d2652b1b99aa99a8de849b7e064dee0ab83 /sys/isa | |
parent | b162b45509eea7132c7564e30d24c73dd9b607d5 (diff) | |
download | src-a0e1678488ff490cd7232b5373e8d9f460ee9d68.tar.gz src-a0e1678488ff490cd7232b5373e8d9f460ee9d68.zip |
Add a nasty hack to get remote kernel gdb working from ddb. ddb would
complain before that a suitable gdb port had not been setup because gdbdev
was NULL. This abuses the fact that the gdb port is hard-coded to the
address normally assigned to sio1 and thus hard-codes in sio1 as the gdb
port. Yuck.
Notes
Notes:
svn path=/head/; revision=65714
Diffstat (limited to 'sys/isa')
-rw-r--r-- | sys/isa/sio.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sys/isa/sio.c b/sys/isa/sio.c index 4742523fc51f..8826c41c6c34 100644 --- a/sys/isa/sio.c +++ b/sys/isa/sio.c @@ -3240,10 +3240,19 @@ siogdbattach(port, speed) int s; u_char cfcr; struct siocnstate sp; + int unit = 1; /* XXX !!! */ siogdbiobase = port; gdbdefaultrate = speed; + printf("sio%d: gdb debugging port\n", unit); + siogdbunit = unit; +#if DDB > 0 + gdbdev = makedev(CDEV_MAJOR, unit); + gdb_getc = siocngetc; + gdb_putc = siocnputc; +#endif + s = spltty(); /* |