mirror of
https://github.com/reactos/reactos.git
synced 2024-06-19 19:28:22 +00:00
[NTOS] Include kdbg/kdb.h only in the files that really need it.
This commit is contained in:
parent
8f2c2c1def
commit
579eab8a31
|
@ -1388,6 +1388,9 @@ CcInitView (
|
|||
}
|
||||
|
||||
#if DBG && defined(KDBG)
|
||||
|
||||
#include <kdbg/kdb.h>
|
||||
|
||||
BOOLEAN
|
||||
ExpKdbgExtFileCache(ULONG Argc, PCHAR Argv[])
|
||||
{
|
||||
|
@ -1478,6 +1481,7 @@ ExpKdbgExtDefWrites(ULONG Argc, PCHAR Argv[])
|
|||
|
||||
return TRUE;
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif // DBG && defined(KDBG)
|
||||
|
||||
/* EOF */
|
||||
|
|
|
@ -1320,6 +1320,9 @@ ExEnumHandleTable(IN PHANDLE_TABLE HandleTable,
|
|||
}
|
||||
|
||||
#if DBG && defined(KDBG)
|
||||
|
||||
#include <kdbg/kdb.h>
|
||||
|
||||
BOOLEAN ExpKdbgExtHandle(ULONG Argc, PCHAR Argv[])
|
||||
{
|
||||
USHORT i;
|
||||
|
@ -1495,4 +1498,5 @@ BOOLEAN ExpKdbgExtHandle(ULONG Argc, PCHAR Argv[])
|
|||
|
||||
return TRUE;
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif // DBG && defined(KDBG)
|
||||
|
|
|
@ -68,9 +68,6 @@
|
|||
#include "fsrtl.h"
|
||||
#include "lpc.h"
|
||||
#include "rtl.h"
|
||||
#ifdef KDBG
|
||||
#include <kdbg/kdb.h>
|
||||
#endif
|
||||
#include "dbgk.h"
|
||||
#include "spinlock.h"
|
||||
#include "test.h"
|
||||
|
|
|
@ -13,6 +13,9 @@
|
|||
#include <reactos/buildno.h>
|
||||
#include "kd.h"
|
||||
#include "kdterminal.h"
|
||||
#ifdef KDBG
|
||||
#include "../kdbg/kdb.h"
|
||||
#endif
|
||||
|
||||
#define NDEBUG
|
||||
#include <debug.h>
|
||||
|
|
|
@ -10,6 +10,11 @@
|
|||
/* INCLUDES ******************************************************************/
|
||||
|
||||
#include <ntoskrnl.h>
|
||||
|
||||
#ifdef KDBG
|
||||
#include <kdbg/kdb.h>
|
||||
#endif
|
||||
|
||||
#define NDEBUG
|
||||
#include <debug.h>
|
||||
|
||||
|
@ -2209,13 +2214,13 @@ KdSystemDebugControl(
|
|||
KeRosDumpStackFrames((PULONG_PTR)InputBuffer, InputBufferLength);
|
||||
break;
|
||||
}
|
||||
#if defined(KDBG)
|
||||
#ifdef KDBG
|
||||
/* Register KDBG CLI callback */
|
||||
case 'RbdK':
|
||||
{
|
||||
return KdbRegisterCliCallback(InputBuffer, InputBufferLength);
|
||||
}
|
||||
#endif /* KDBG */
|
||||
#endif // KDBG
|
||||
#endif
|
||||
default:
|
||||
break;
|
||||
|
|
|
@ -8,6 +8,8 @@
|
|||
*/
|
||||
|
||||
#include <ntoskrnl.h>
|
||||
#include "../kdb.h"
|
||||
|
||||
#define NDEBUG
|
||||
#include <debug.h>
|
||||
|
||||
|
|
|
@ -10,6 +10,8 @@
|
|||
/* INCLUDES ******************************************************************/
|
||||
|
||||
#include <ntoskrnl.h>
|
||||
#include "kdb.h"
|
||||
|
||||
#define NDEBUG
|
||||
#include <debug.h>
|
||||
|
||||
|
|
|
@ -29,6 +29,7 @@
|
|||
/* INCLUDES ******************************************************************/
|
||||
|
||||
#include <ntoskrnl.h>
|
||||
#include "kdb.h"
|
||||
#include "../kd/kdterminal.h"
|
||||
|
||||
#define NDEBUG
|
||||
|
|
|
@ -34,6 +34,8 @@
|
|||
/* INCLUDES ******************************************************************/
|
||||
|
||||
#include <ntoskrnl.h>
|
||||
#include "kdb.h"
|
||||
|
||||
#define NDEBUG
|
||||
#include <debug.h>
|
||||
|
||||
|
|
|
@ -11,6 +11,7 @@
|
|||
/* INCLUDES *****************************************************************/
|
||||
|
||||
#include <ntoskrnl.h>
|
||||
#include "kdb.h"
|
||||
|
||||
#define NDEBUG
|
||||
#include <debug.h>
|
||||
|
|
|
@ -10,6 +10,10 @@
|
|||
|
||||
#include <ntoskrnl.h>
|
||||
|
||||
#ifdef KDBG
|
||||
#include <kdbg/kdb.h>
|
||||
#endif
|
||||
|
||||
#define NDEBUG
|
||||
#include <debug.h>
|
||||
|
||||
|
|
|
@ -479,6 +479,10 @@ ExpComputePartialHashForAddress(IN PVOID BaseAddress)
|
|||
#define ExpTagAllowPrint(Tag) \
|
||||
((Tag) >= 0x20 /* Space */ && (Tag) <= 0x7E /* Tilde */)
|
||||
|
||||
#ifdef KDBG
|
||||
#include <kdbg/kdb.h>
|
||||
#endif
|
||||
|
||||
#ifdef KDBG
|
||||
#define MiDumperPrint(dbg, fmt, ...) \
|
||||
if (dbg) KdbpPrint(fmt, ##__VA_ARGS__); \
|
||||
|
|
|
@ -44,6 +44,8 @@ VOID MiDumpPoolConsumers(BOOLEAN CalledFromDbg, ULONG Tag, ULONG Mask, ULONG Fla
|
|||
|
||||
#if DBG && defined(KDBG)
|
||||
|
||||
#include <kdbg/kdb.h>
|
||||
|
||||
BOOLEAN
|
||||
ExpKdbgExtPool(
|
||||
ULONG Argc,
|
||||
|
@ -620,6 +622,6 @@ ExpKdbgExtIrpFind(
|
|||
return TRUE;
|
||||
}
|
||||
|
||||
#endif // DBG && KDBG
|
||||
#endif // DBG && defined(KDBG)
|
||||
|
||||
/* EOF */
|
||||
|
|
Loading…
Reference in a new issue