mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 17:44:45 +00:00
[NTOS:KD] Remove some now useless tests on _WINKD_
This commit is contained in:
parent
660948ce6f
commit
c2946ced92
6 changed files with 1 additions and 19 deletions
|
@ -14,7 +14,6 @@
|
|||
|
||||
/* DATA **********************************************************************/
|
||||
|
||||
// #ifdef _WINKD_
|
||||
/*
|
||||
* WinDBG Debugger Worker State Machine data
|
||||
*/
|
||||
|
@ -27,11 +26,9 @@ WINKD_WORKER_STATE ExpDebuggerWork;
|
|||
PEPROCESS ExpDebuggerProcessAttach;
|
||||
PEPROCESS ExpDebuggerProcessKill;
|
||||
ULONG_PTR ExpDebuggerPageIn;
|
||||
// #endif /* _WINKD_ */
|
||||
|
||||
/* FUNCTIONS *****************************************************************/
|
||||
|
||||
// #ifdef _WINKD_
|
||||
/*
|
||||
* WinDBG Debugger Worker State Machine
|
||||
*
|
||||
|
@ -142,7 +139,6 @@ ExpDebuggerWorker(IN PVOID Context)
|
|||
ObDereferenceObject(Process);
|
||||
}
|
||||
}
|
||||
// #endif /* _WINKD_ */
|
||||
|
||||
/*++
|
||||
* @name NtSystemDebugControl
|
||||
|
|
|
@ -483,7 +483,6 @@ ExpWorkerThreadBalanceManager(IN PVOID Context)
|
|||
PsTerminateSystemThread(STATUS_SYSTEM_SHUTDOWN);
|
||||
}
|
||||
|
||||
// #ifdef _WINKD_
|
||||
/*
|
||||
* If WinDBG wants to attach or kill a user-mode process, and/or
|
||||
* page-in an address region, queue a debugger worker thread.
|
||||
|
@ -494,7 +493,6 @@ ExpWorkerThreadBalanceManager(IN PVOID Context)
|
|||
ExpDebuggerWork = WinKdWorkerInitialized;
|
||||
ExQueueWorkItem(&ExpDebuggerWorkItem, DelayedWorkQueue);
|
||||
}
|
||||
// #endif /* _WINKD_ */
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -47,7 +47,6 @@ extern UNICODE_STRING CmVersionString;
|
|||
extern UNICODE_STRING CmCSDVersionString;
|
||||
extern CHAR NtBuildLab[];
|
||||
|
||||
// #ifdef _WINKD_
|
||||
/*
|
||||
* WinDBG Debugger Worker State Machine data (see dbgctrl.c)
|
||||
*/
|
||||
|
@ -65,7 +64,6 @@ extern PEPROCESS ExpDebuggerProcessKill;
|
|||
extern ULONG_PTR ExpDebuggerPageIn;
|
||||
|
||||
VOID NTAPI ExpDebuggerWorker(IN PVOID Context);
|
||||
// #endif /* _WINKD_ */
|
||||
|
||||
#ifdef _WIN64
|
||||
#define HANDLE_LOW_BITS (PAGE_SHIFT - 4)
|
||||
|
|
|
@ -24,9 +24,7 @@ EXTERN PsConvertToGuiThread:PROC
|
|||
EXTERN MmCreateKernelStack:PROC
|
||||
EXTERN MmDeleteKernelStack:PROC
|
||||
|
||||
#ifdef _WINKD_
|
||||
EXTERN KdSetOwedBreakpoints:PROC
|
||||
#endif
|
||||
|
||||
|
||||
/* Helper Macros *************************************************************/
|
||||
|
@ -430,9 +428,6 @@ FUNC KiPageFault
|
|||
|
||||
/* Check for success */
|
||||
test eax, eax
|
||||
#ifndef _WINKD_
|
||||
jge PageFaultReturn
|
||||
#else
|
||||
jl PageFaultError
|
||||
|
||||
/* Check whether the kernel debugger has owed breakpoints to be inserted */
|
||||
|
@ -441,7 +436,6 @@ FUNC KiPageFault
|
|||
jmp PageFaultReturn
|
||||
|
||||
PageFaultError:
|
||||
#endif
|
||||
|
||||
/* Disable interrupts again for the debugger */
|
||||
cli
|
||||
|
|
|
@ -1376,10 +1376,8 @@ KiTrap0EHandler(IN PKTRAP_FRAME TrapFrame)
|
|||
TrapFrame);
|
||||
if (NT_SUCCESS(Status))
|
||||
{
|
||||
#ifdef _WINKD_
|
||||
/* Check whether the kernel debugger has owed breakpoints to be inserted */
|
||||
KdSetOwedBreakpoints();
|
||||
#endif
|
||||
/* We succeeded, return */
|
||||
KiEoiHelper(TrapFrame);
|
||||
}
|
||||
|
|
|
@ -15,9 +15,7 @@
|
|||
#define MODULE_INVOLVED_IN_ARM3
|
||||
#include <mm/ARM3/miarm.h>
|
||||
|
||||
#ifndef _WINKD_
|
||||
#define KdpDprintf DPRINT
|
||||
#elif defined(NDEBUG)
|
||||
#ifdef NDEBUG
|
||||
#define KdpDprintf(...)
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in a new issue