mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-29 04:13:32 +00:00
- Fix DBG macro AGAIN which got broken during the switch to cmake. Checked build: DBG = 1, free build: DBG = 0. Noobs.
svn path=/trunk/; revision=56090
This commit is contained in:
@@ -105,6 +105,8 @@ else()
|
||||
|
||||
if(DBG)
|
||||
add_definitions(-DDBG=1 -D_SEH_ENABLE_TRACE)
|
||||
else
|
||||
add_definitions(-DDBG=0)
|
||||
endif()
|
||||
|
||||
if(KDBG)
|
||||
|
||||
@@ -1312,7 +1312,7 @@ ProcessResources
|
||||
ULONG countDMA = ResourceList->NumberOfDmas();
|
||||
ULONG lengthIO = ResourceList->FindTranslatedPort(0)->u.Port.Length;
|
||||
|
||||
#ifdef DBG
|
||||
#if DBG
|
||||
DPRINT("Starting MPU401 Port 0x%lx", ResourceList->FindTranslatedPort(0)->u.Port.Start.LowPart);
|
||||
#endif
|
||||
|
||||
|
||||
@@ -226,7 +226,7 @@ StreamClassDebugAssert(
|
||||
IN PCHAR AssertText,
|
||||
IN ULONG AssertValue)
|
||||
{
|
||||
#ifdef DBG
|
||||
#if DBG
|
||||
DbgBreakPoint();
|
||||
#endif
|
||||
}
|
||||
@@ -241,7 +241,7 @@ StreamClassDebugPrint(
|
||||
IN PCCHAR DebugMessage,
|
||||
...)
|
||||
{
|
||||
#ifdef DBG
|
||||
#if DBG
|
||||
va_list ap;
|
||||
|
||||
if (DebugPrintLevel <=STREAMDEBUG_LEVEL)
|
||||
|
||||
@@ -22,13 +22,13 @@
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_SMP
|
||||
#ifdef DBG
|
||||
#if DBG
|
||||
#define HAL_BUILD_TYPE (DBG ? PRCB_BUILD_DEBUG : 0)
|
||||
#else
|
||||
#define HAL_BUILD_TYPE 0
|
||||
#endif
|
||||
#else
|
||||
#ifdef DBG
|
||||
#if DBG
|
||||
#define HAL_BUILD_TYPE ((DBG ? PRCB_BUILD_DEBUG : 0) | PRCB_BUILD_UNIPROCESSOR)
|
||||
#else
|
||||
#define HAL_BUILD_TYPE 0 | PRCB_BUILD_UNIPROCESSOR
|
||||
|
||||
@@ -51,7 +51,7 @@ FORCEINLINE
|
||||
VOID
|
||||
KxAcquireSpinLock(IN PKSPIN_LOCK SpinLock)
|
||||
{
|
||||
#ifdef DBG
|
||||
#if DBG
|
||||
/* Make sure that we don't own the lock already */
|
||||
if (((KSPIN_LOCK)KeGetCurrentThread() | 1) == *SpinLock)
|
||||
{
|
||||
@@ -63,7 +63,7 @@ KxAcquireSpinLock(IN PKSPIN_LOCK SpinLock)
|
||||
/* Try to acquire the lock */
|
||||
while (InterlockedBitTestAndSet((PLONG)SpinLock, 0))
|
||||
{
|
||||
#if defined(_M_IX86) && defined(DBG)
|
||||
#if defined(_M_IX86) && DBG
|
||||
/* On x86 debug builds, we use a much slower but useful routine */
|
||||
Kii386SpinOnSpinLock(SpinLock, 5);
|
||||
#else
|
||||
|
||||
@@ -114,7 +114,7 @@ KiInitializePcr(IN PKIPCR Pcr,
|
||||
#ifndef CONFIG_SMP
|
||||
Pcr->Prcb.BuildType |= PRCB_BUILD_UNIPROCESSOR;
|
||||
#endif
|
||||
#ifdef DBG
|
||||
#if DBG
|
||||
Pcr->Prcb.BuildType |= PRCB_BUILD_DEBUG;
|
||||
#endif
|
||||
|
||||
|
||||
@@ -506,7 +506,7 @@ Win32CsrHardError(
|
||||
IN PCSR_THREAD ThreadData,
|
||||
IN PHARDERROR_MSG Message)
|
||||
{
|
||||
#ifdef DBG
|
||||
#if DBG
|
||||
PCSR_PROCESS ProcessData = ThreadData->Process;
|
||||
#endif
|
||||
ULONG_PTR Parameters[MAXIMUM_HARDERROR_PARAMETERS];
|
||||
|
||||
@@ -194,12 +194,12 @@ typedef struct _PROCESSINFO
|
||||
struct _GDI_POOL *pPoolBrushAttr;
|
||||
struct _GDI_POOL *pPoolRgnAttr;
|
||||
|
||||
#ifdef DBG
|
||||
#if DBG
|
||||
BYTE DbgChannelLevel[DbgChCount];
|
||||
#endif
|
||||
} PROCESSINFO;
|
||||
|
||||
#ifdef DBG
|
||||
#if DBG
|
||||
void NTAPI UserDbgPreServiceHook(ULONG ulSyscallId, PULONG_PTR pulArguments);
|
||||
ULONG_PTR NTAPI UserDbgPostServiceHook(ULONG ulSyscallId, ULONG_PTR ulResult);
|
||||
#endif
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
|
||||
*/
|
||||
|
||||
#ifdef DBG
|
||||
#if DBG
|
||||
|
||||
typedef struct
|
||||
{
|
||||
|
||||
@@ -30,7 +30,7 @@ extern ULONG_PTR Win32kSSDT[];
|
||||
extern UCHAR Win32kSSPT[];
|
||||
extern ULONG Win32kNumberOfSysCalls;
|
||||
|
||||
#ifdef DBG
|
||||
#if DBG
|
||||
void
|
||||
NTAPI
|
||||
DbgPreServiceHook(ULONG ulSyscallId, PULONG_PTR pulArguments)
|
||||
@@ -85,7 +85,7 @@ Win32kProcessCallback(struct _EPROCESS *Process,
|
||||
|
||||
PsSetProcessWin32Process(Process, ppiCurrent);
|
||||
|
||||
#ifdef DBG
|
||||
#if DBG
|
||||
DbgInitDebugChannels();
|
||||
#endif
|
||||
|
||||
@@ -566,7 +566,7 @@ DriverEntry(
|
||||
PsEstablishWin32Callouts((PWIN32_CALLOUTS_FPNS)&CalloutData);
|
||||
|
||||
/* Register service hook callbacks */
|
||||
#ifdef DBG
|
||||
#if DBG
|
||||
KdSystemDebugControl('CsoR', DbgPreServiceHook, ID_Win32PreServiceHook, 0, 0, 0, 0);
|
||||
KdSystemDebugControl('CsoR', DbgPostServiceHook, ID_Win32PostServiceHook, 0, 0, 0, 0);
|
||||
#endif
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
/** INCLUDES ******************************************************************/
|
||||
|
||||
#ifdef DBG
|
||||
#if DBG
|
||||
#include <win32k.h>
|
||||
#define NDEBUG
|
||||
#include <debug.h>
|
||||
|
||||
@@ -1309,7 +1309,7 @@ GDI_CleanupForProcess(struct _EPROCESS *Process)
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef DBG
|
||||
#if DBG
|
||||
//#ifdef GDI_DEBUG
|
||||
DbgGdiHTIntegrityCheck();
|
||||
//#endif
|
||||
|
||||
Reference in New Issue
Block a user