Completely disable the debug register assertions in the trap exit code for KDBG as...
authorStefan Ginsberg <stefanginsberg@gmail.com>
Tue, 15 Sep 2015 17:55:14 +0000 (17:55 +0000)
committerStefan Ginsberg <stefanginsberg@gmail.com>
Tue, 15 Sep 2015 17:55:14 +0000 (17:55 +0000)
svn path=/trunk/; revision=69244

reactos/ntoskrnl/include/internal/i386/trap_x.h

index 08acc3f..862403f 100644 (file)
@@ -153,6 +153,8 @@ KiExitTrapDebugChecks(IN PKTRAP_FRAME TrapFrame,
         __debugbreak();
     }
 
+    /* FIXME: KDBG messes around with these improperly */
+#if !defined(KDBG)
     /* Check DR values */
     if (KiUserTrap(TrapFrame))
     {
@@ -175,8 +177,9 @@ KiExitTrapDebugChecks(IN PKTRAP_FRAME TrapFrame,
         CheckDr(1, Prcb->ProcessorState.SpecialRegisters.KernelDr1);
         CheckDr(2, Prcb->ProcessorState.SpecialRegisters.KernelDr2);
         CheckDr(3, Prcb->ProcessorState.SpecialRegisters.KernelDr3);
-        //CheckDr(7, Prcb->ProcessorState.SpecialRegisters.KernelDr7);
+        CheckDr(7, Prcb->ProcessorState.SpecialRegisters.KernelDr7);
     }
+#endif
 
     StopChecking = FALSE;
 }