Fix some of the damage r17811 did to the GDB stub
authorGé van Geldorp <ge@gse.nl>
Thu, 15 Sep 2005 22:07:35 +0000 (22:07 +0000)
committerGé van Geldorp <ge@gse.nl>
Thu, 15 Sep 2005 22:07:35 +0000 (22:07 +0000)
svn path=/trunk/; revision=17871

reactos/ntoskrnl/kd/wrappers/gdbstub.c
reactos/ntoskrnl/ke/i386/exp.c

index 8e2142a..e15c1a7 100644 (file)
@@ -1068,7 +1068,7 @@ GspSetHwBreakpoint(ULONG BreakpointNumber,
 }
 
 
-static BOOL gdb_attached_yet = TRUE;
+static BOOL gdb_attached_yet = FALSE;
 /*
  * This function does all command procesing for interfacing to gdb.
  */
@@ -1102,7 +1102,7 @@ KdpGdbEnterDebuggerException(PEXCEPTION_RECORD ExceptionRecord,
     {
       GspAccessLocation = NULL;
       GspMemoryError = TRUE;
-      TrapFrame->Eip += 3;
+      Context->Eip += 3;
     }
   else
     {
@@ -1321,8 +1321,7 @@ KdpGdbEnterDebuggerException(PEXCEPTION_RECORD ExceptionRecord,
 #error Unknown compiler for inline assembler
 #endif
 
-                KeContextToTrapFrame(Context, NULL, TrapFrame, KernelMode);
-                return ((SigVal == 5) ? (kdContinue) : (kdHandleException));
+                return kdContinue;
                 break;
               }
 
@@ -1399,7 +1398,7 @@ KdpGdbEnterDebuggerException(PEXCEPTION_RECORD ExceptionRecord,
       ASSERT(0);
     }
 
-    return kdDoNotHandleException;
+    return kdContinue;
 }
 
 
index aa5630f..ce4f06d 100644 (file)
@@ -1242,7 +1242,7 @@ KiDispatchException(PEXCEPTION_RECORD ExceptionRecord,
                                                &Context,
                                                TrapFrame,
                                                TRUE,
-                                               FALSE);
+                                               TRUE);
 
             /* Exit if we're continuing */
             if (Action == kdContinue) goto Handled;