File tree Expand file tree Collapse file tree 6 files changed +1
-19
lines changed Expand file tree Collapse file tree 6 files changed +1
-19
lines changed Original file line number Diff line number Diff line change 14
14
15
15
/* DATA **********************************************************************/
16
16
17
- // #ifdef _WINKD_
18
17
/*
19
18
* WinDBG Debugger Worker State Machine data
20
19
*/
@@ -27,11 +26,9 @@ WINKD_WORKER_STATE ExpDebuggerWork;
27
26
PEPROCESS ExpDebuggerProcessAttach ;
28
27
PEPROCESS ExpDebuggerProcessKill ;
29
28
ULONG_PTR ExpDebuggerPageIn ;
30
- // #endif /* _WINKD_ */
31
29
32
30
/* FUNCTIONS *****************************************************************/
33
31
34
- // #ifdef _WINKD_
35
32
/*
36
33
* WinDBG Debugger Worker State Machine
37
34
*
@@ -142,7 +139,6 @@ ExpDebuggerWorker(IN PVOID Context)
142
139
ObDereferenceObject (Process );
143
140
}
144
141
}
145
- // #endif /* _WINKD_ */
146
142
147
143
/*++
148
144
* @name NtSystemDebugControl
Original file line number Diff line number Diff line change @@ -487,7 +487,6 @@ ExpWorkerThreadBalanceManager(IN PVOID Context)
487
487
PsTerminateSystemThread (STATUS_SYSTEM_SHUTDOWN );
488
488
}
489
489
490
- // #ifdef _WINKD_
491
490
/*
492
491
* If WinDBG wants to attach or kill a user-mode process, and/or
493
492
* page-in an address region, queue a debugger worker thread.
@@ -498,7 +497,6 @@ ExpWorkerThreadBalanceManager(IN PVOID Context)
498
497
ExpDebuggerWork = WinKdWorkerInitialized ;
499
498
ExQueueWorkItem (& ExpDebuggerWorkItem , DelayedWorkQueue );
500
499
}
501
- // #endif /* _WINKD_ */
502
500
}
503
501
}
504
502
Original file line number Diff line number Diff line change @@ -47,7 +47,6 @@ extern UNICODE_STRING CmVersionString;
47
47
extern UNICODE_STRING CmCSDVersionString ;
48
48
extern CHAR NtBuildLab [];
49
49
50
- // #ifdef _WINKD_
51
50
/*
52
51
* WinDBG Debugger Worker State Machine data (see dbgctrl.c)
53
52
*/
@@ -65,7 +64,6 @@ extern PEPROCESS ExpDebuggerProcessKill;
65
64
extern ULONG_PTR ExpDebuggerPageIn ;
66
65
67
66
VOID NTAPI ExpDebuggerWorker (IN PVOID Context );
68
- // #endif /* _WINKD_ */
69
67
70
68
#ifdef _WIN64
71
69
#define HANDLE_LOW_BITS (PAGE_SHIFT - 4)
Original file line number Diff line number Diff line change @@ -22,9 +22,7 @@ EXTERN KiXmmExceptionHandler:PROC
22
22
EXTERN KiDeliverApc:PROC
23
23
EXTERN KiDpcInterruptHandler:PROC
24
24
25
- #ifdef _WINKD_
26
25
EXTERN KdSetOwedBreakpoints:PROC
27
- #endif
28
26
29
27
30
28
/ * GLOBALS ******************************************************************* /
@@ -512,9 +510,6 @@ FUNC KiPageFault
512
510
513
511
/ * Check for success * /
514
512
test eax , eax
515
- #ifndef _WINKD_
516
- jge PageFaultReturn
517
- #else
518
513
jl PageFaultError
519
514
520
515
/ * Check whether the kernel debugger has owed breakpoints to be inserted * /
@@ -523,7 +518,6 @@ FUNC KiPageFault
523
518
jmp PageFaultReturn
524
519
525
520
PageFaultError:
526
- #endif
527
521
528
522
/ * Disable interrupts again for the debugger * /
529
523
cli
Original file line number Diff line number Diff line change @@ -1363,10 +1363,8 @@ KiTrap0EHandler(IN PKTRAP_FRAME TrapFrame)
1363
1363
TrapFrame );
1364
1364
if (NT_SUCCESS (Status ))
1365
1365
{
1366
- #ifdef _WINKD_
1367
1366
/* Check whether the kernel debugger has owed breakpoints to be inserted */
1368
1367
KdSetOwedBreakpoints ();
1369
- #endif
1370
1368
/* We succeeded, return */
1371
1369
KiEoiHelper (TrapFrame );
1372
1370
}
Original file line number Diff line number Diff line change 15
15
#define MODULE_INVOLVED_IN_ARM3
16
16
#include <mm/ARM3/miarm.h>
17
17
18
- #ifndef _WINKD_
19
- #define KdpDprintf DPRINT
20
- #elif defined(NDEBUG )
18
+ #ifdef NDEBUG
21
19
#define KdpDprintf (...)
22
20
#endif
23
21
You can’t perform that action at this time.
0 commit comments