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 */