From 07c48e4bb00d29240ba35ebd24ee8e9804df9056 Mon Sep 17 00:00:00 2001 From: Poul-Henning Kamp Date: Mon, 25 Nov 1996 18:39:25 +0000 Subject: [PATCH] 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 --- sys/amd64/amd64/amd64-gdbstub.c | 9 +++++++++ sys/i386/i386/i386-gdbstub.c | 9 +++++++++ 2 files changed, 18 insertions(+) diff --git a/sys/amd64/amd64/amd64-gdbstub.c b/sys/amd64/amd64/amd64-gdbstub.c index 7ac17a07c6d..4035f9718ec 100644 --- a/sys/amd64/amd64/amd64-gdbstub.c +++ b/sys/amd64/amd64/amd64-gdbstub.c @@ -99,6 +99,14 @@ #include +#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 7ac17a07c6d..4035f9718ec 100644 --- a/sys/i386/i386/i386-gdbstub.c +++ b/sys/i386/i386/i386-gdbstub.c @@ -99,6 +99,14 @@ #include +#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 */