summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1996-11-25 18:39:25 +0000
committerphk <phk@FreeBSD.org>1996-11-25 18:39:25 +0000
commitcab259725303c791048a22bfd0ccbd197a83b999 (patch)
tree861993858000f84df77d9f2a64920755dae371da /sys
parent7e42a5cdec072f54656b65f2c24f1809c1bb0895 (diff)
downloadFreeBSD-src-cab259725303c791048a22bfd0ccbd197a83b999.zip
FreeBSD-src-cab259725303c791048a22bfd0ccbd197a83b999.tar.gz
Make a kernel with DDB but without sio possible again. This is only
a stopgap measure, a more complete solution is on somebodys whiteboard (and we all know that THAT means :-). Reviewed by: pst
Diffstat (limited to 'sys')
-rw-r--r--sys/amd64/amd64/amd64-gdbstub.c9
-rw-r--r--sys/i386/i386/i386-gdbstub.c9
2 files changed, 18 insertions, 0 deletions
diff --git a/sys/amd64/amd64/amd64-gdbstub.c b/sys/amd64/amd64/amd64-gdbstub.c
index 7ac17a0..4035f97 100644
--- a/sys/amd64/amd64/amd64-gdbstub.c
+++ b/sys/amd64/amd64/amd64-gdbstub.c
@@ -99,6 +99,14 @@
#include <setjmp.h>
+#include "sio.h"
+
+#if NSIO == 0
+void
+gdb_handle_exception (db_regs_t *raw_regs, int type, int code)
+{
+}
+#else
/************************************************************************/
void gdb_handle_exception (db_regs_t *, int, int);
@@ -585,3 +593,4 @@ gdb_handle_exception (db_regs_t *raw_regs, int type, int code)
putpacket (remcomOutBuffer);
}
}
+#endif /* NSIO > 0 */
diff --git a/sys/i386/i386/i386-gdbstub.c b/sys/i386/i386/i386-gdbstub.c
index 7ac17a0..4035f97 100644
--- a/sys/i386/i386/i386-gdbstub.c
+++ b/sys/i386/i386/i386-gdbstub.c
@@ -99,6 +99,14 @@
#include <setjmp.h>
+#include "sio.h"
+
+#if NSIO == 0
+void
+gdb_handle_exception (db_regs_t *raw_regs, int type, int code)
+{
+}
+#else
/************************************************************************/
void gdb_handle_exception (db_regs_t *, int, int);
@@ -585,3 +593,4 @@ gdb_handle_exception (db_regs_t *raw_regs, int type, int code)
putpacket (remcomOutBuffer);
}
}
+#endif /* NSIO > 0 */
OpenPOWER on IntegriCloud