Some of this sneaked past in my last commit, so commit the rest:

- Wrap some KDBG-only stuff into KDBG-define so we don't have KdSystemDebugControl being called needlessly on KD-builds.

svn path=/trunk/; revision=69148
This commit is contained in:
Stefan Ginsberg 2015-09-09 14:00:43 +00:00
parent edd85f8e32
commit 56e0c5f897
2 changed files with 4 additions and 2 deletions

View file

@ -862,6 +862,7 @@ i8042KbdInterruptService(
/* b - Bugcheck */
KeBugCheck(MANUALLY_INITIATED_CRASH);
}
#if defined(KDBG)
else
{
/* Send request to the kernel debugger.
@ -874,6 +875,7 @@ i8042KbdInterruptService(
NULL,
KernelMode);
}
#endif
}
}

View file

@ -2,7 +2,7 @@
#define GDI_DBG_MAX_BTS 10
#if DBG
#if DBG && defined(KDBG)
#define ASSERT_NOGDILOCKS() GdiDbgAssertNoLocks(__FILE__,__LINE__)
#define KeRosDumpStackFrames(Frames, Count) \
KdSystemDebugControl('DsoR', (PVOID)Frames, Count, NULL, 0, NULL, KernelMode)
@ -36,7 +36,7 @@ DbgDumpGdiHandleTableWithBT(VOID);
#endif
#if KDBG
#if defined(KDBG)
BOOLEAN
NTAPI