- Fix DBG=KDBG=0 build

svn path=/trunk/; revision=28257
This commit is contained in:
Aleksey Bragin 2007-08-09 07:50:31 +00:00
parent a21d95da1f
commit 79d430fe4a
3 changed files with 38 additions and 6 deletions

View file

@ -0,0 +1,30 @@
/*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
* FILE: ntoskrnl/kd/wrappers/bochs.c
* PURPOSE: KDBG Wrapper for Kd
*
* PROGRAMMERS: Aleksey Bragin (aleksey@reactos.org)
*/
#include <ntoskrnl.h>
#define NDEBUG
#include <internal/debug.h>
VOID NTAPI
KdbInitialize(PKD_DISPATCH_TABLE DispatchTable, ULONG BootPhase);
/* FUNCTIONS *****************************************************************/
VOID
NTAPI
KdpKdbgInit(PKD_DISPATCH_TABLE DispatchTable,
ULONG BootPhase)
{
#ifdef KDBG
/* Forward the call */
KdbInitialize(DispatchTable, BootPhase);
#else
/* When KDBG is disabled, it is not used/initialized at all */
#endif
}

View file

@ -671,20 +671,21 @@ KdbSymProcessBootSymbols(IN PANSI_STRING AnsiFileName)
}
VOID
STDCALL
NTAPI
KdbDebugPrint(PCH Message, ULONG Length)
{
/* Nothing here */
}
/*! \brief Initializes the KDB symbols implementation.
*
* \param NtoskrnlModuleObject LDR_DATA_TABLE_ENTRY of ntoskrnl.exe
* \param LdrHalModuleObject LDR_DATA_TABLE_ENTRY of hal.sys
* \param DispatchTable Pointer to the KD dispatch table
* \param BootPhase Phase of initialization
*/
VOID
STDCALL
KdpKdbgInit(PKD_DISPATCH_TABLE DispatchTable,
NTAPI
KdbInitialize(PKD_DISPATCH_TABLE DispatchTable,
ULONG BootPhase)
{
PCHAR p1, p2;

View file

@ -255,6 +255,7 @@
<directory name="wrappers">
<file>bochs.c</file>
<file>gdbstub.c</file>
<file>kdbg.c</file>
</directory>
<file>kdinit.c</file>
<file>kdio.c</file>