Don't call bx_gdbstub_exception when we're not compiling the gdb stub.
authorBen Pfaff <blp@cs.stanford.edu>
Thu, 11 Jan 2007 06:57:40 +0000 (06:57 +0000)
committerBen Pfaff <blp@cs.stanford.edu>
Thu, 11 Jan 2007 06:57:40 +0000 (06:57 +0000)
Thanks to Godmar Back for pointing this out.

src/misc/bochs-2.2.6-page-fault-segv.patch

index 81e59a7170d27376fc9fd484ae2a064c2bd7f0b7..7c61a375060504e4103be65377cbc9542519494b 100644 (file)
@@ -2,11 +2,14 @@ Index: bochs-2.2.6/cpu/exception.cc
 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);