diff -u bochs-2.2.6/cpu/exception.cc\~ bochs-2.2.6/cpu/exception.cc
--- bochs-2.2.6/cpu/exception.cc~ 2006-09-28 15:51:39.000000000 -0700
+++ bochs-2.2.6/cpu/exception.cc 2006-12-08 11:14:33.000000000 -0800
-@@ -1033,6 +1033,7 @@ void BX_CPU_C::exception(unsigned vector
+@@ -1033,6 +1033,10 @@ void BX_CPU_C::exception(unsigned vector
BX_CPU_THIS_PTR curr_exception[0] = exception_type;
}
++#if BX_GDBSTUB
+ bx_gdbstub_exception(vector);
++#endif
++
#if BX_CPU_LEVEL >= 2
if (!real_mode()) {
BX_CPU_THIS_PTR interrupt(vector, 0, push_error, error_code);