Fix some of the damage r17811 did to the GDB stub
Modified: trunk/reactos/ntoskrnl/kd/wrappers/gdbstub.c
Modified: trunk/reactos/ntoskrnl/ke/i386/exp.c

Modified: trunk/reactos/ntoskrnl/kd/wrappers/gdbstub.c
--- trunk/reactos/ntoskrnl/kd/wrappers/gdbstub.c	2005-09-15 20:24:30 UTC (rev 17870)
+++ trunk/reactos/ntoskrnl/kd/wrappers/gdbstub.c	2005-09-15 22:07:35 UTC (rev 17871)
@@ -1068,7 +1068,7 @@
 }
 
 
-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 @@
     {
       GspAccessLocation = NULL;
       GspMemoryError = TRUE;
-      TrapFrame->Eip += 3;
+      Context->Eip += 3;
     }
   else
     {
@@ -1321,8 +1321,7 @@
 #error Unknown compiler for inline assembler
 #endif
 
-                KeContextToTrapFrame(Context, NULL, TrapFrame, KernelMode);
-                return ((SigVal == 5) ? (kdContinue) : (kdHandleException));
+                return kdContinue;
                 break;
               }
 
@@ -1399,7 +1398,7 @@
       ASSERT(0);
     }
 
-    return kdDoNotHandleException;
+    return kdContinue;
 }
 
 

Modified: trunk/reactos/ntoskrnl/ke/i386/exp.c
--- trunk/reactos/ntoskrnl/ke/i386/exp.c	2005-09-15 20:24:30 UTC (rev 17870)
+++ trunk/reactos/ntoskrnl/ke/i386/exp.c	2005-09-15 22:07:35 UTC (rev 17871)
@@ -1242,7 +1242,7 @@
                                                &Context,
                                                TrapFrame,
                                                TRUE,
-                                               FALSE);
+                                               TRUE);
 
             /* Exit if we're continuing */
             if (Action == kdContinue) goto Handled;