This patch makes remote debugging with KGDB possible. It fixes a known bug, see
e.g. http://kerneltrap.org/mailarchive/openbsd-misc/2008/10/7/3537224.
Simon
P.S. This is my first contribution, please tell me if I did anything wrong.
Index: sys/dev/isa/com_isa.c
===================================================================
RCS file: /cvs/src/sys/dev/isa/com_isa.c,v
retrieving revision 1.4
diff -N -u sys/dev/isa/com_isa.c
--- sys/dev/isa/com_isa.c 24 Oct 2005 14:22:34 -0000 1.4
+++ sys/dev/isa/com_isa.c 15 Dec 2009 17:54:34 -0000
@@ -129,7 +129,7 @@
iobase = ia->ia_iobase;
iot = ia->ia_iot;
-#ifdef KGBD
+#ifdef KGDB
if ((iobase != comconsaddr) &&
(iobase != com_kgdb_addr)) {
#else
--
DNS64 open-source --> http://ecdysis.viagenie.ca
STUN/TURN server --> http://numb.viagenie.ca
vCard 4.0 --> http://www.vcarddav.org
If this doesn't get picked up then use sendbug(1) including a
description of the problem, how to reproduce, and your patch. In fact,
that's probably the best thing to do anyway. :)
> Index: sys/dev/isa/com_isa.c
> ===================================================================
> RCS file: /cvs/src/sys/dev/isa/com_isa.c,v
> retrieving revision 1.4
> diff -N -u sys/dev/isa/com_isa.c
> --- sys/dev/isa/com_isa.c 24 Oct 2005 14:22:34 -0000 1.4
> +++ sys/dev/isa/com_isa.c 15 Dec 2009 17:54:34 -0000
> @@ -129,7 +129,7 @@
> iobase = ia->ia_iobase;
> iot = ia->ia_iot;
>
> -#ifdef KGBD
> +#ifdef KGDB
> if ((iobase != comconsaddr) &&
> (iobase != com_kgdb_addr)) {
> #else
> --
> DNS64 open-source --> http://ecdysis.viagenie.ca
> STUN/TURN server --> http://numb.viagenie.ca
> vCard 4.0 --> http://www.vcarddav.org
>
--
Darrin Chandler | Phoenix BSD User Group | MetaBUG
dwcha...@stilyagin.com | http://phxbug.org/ | http://metabug.org/
http://www.stilyagin.com/ | Daemons in the Desert | Global BUG Federation
Looks good. It's a damned typo...
devs: please, commit it.
ciao
-dav
Ops, good catch. Commited.
Thanks!
f.-