Skip to content

Commit 152ea82

Browse files
committed
[NTOS:KD] Compile all kd64 files in kdbg mode
1 parent 38b49c4 commit 152ea82

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

ntoskrnl/kd64/kdinit.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
/* UTILITY FUNCTIONS *********************************************************/
1818

19+
#ifdef _WINKD_
1920
/*
2021
* Get the total size of the memory before
2122
* Mm is initialized, by counting the number
@@ -92,6 +93,7 @@ KdUpdateDataBlock(VOID)
9293
KdDebuggerDataBlock.KeUserCallbackDispatcher =
9394
(ULONG_PTR)KeUserCallbackDispatcher;
9495
}
96+
#endif
9597

9698
BOOLEAN
9799
NTAPI
@@ -137,6 +139,7 @@ KdRegisterDebuggerDataBlock(IN ULONG Tag,
137139
return TRUE;
138140
}
139141

142+
#ifdef _WINKD_
140143
BOOLEAN
141144
NTAPI
142145
KdInitSystem(IN ULONG BootPhase,
@@ -459,3 +462,4 @@ KdInitSystem(IN ULONG BootPhase,
459462
/* Return initialized */
460463
return TRUE;
461464
}
465+
#endif

ntoskrnl/kd64/kdtrap.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747

4848
/* FUNCTIONS *****************************************************************/
4949

50+
#ifdef _WINKD_
5051
BOOLEAN
5152
NTAPI
5253
KdpReport(IN PKTRAP_FRAME TrapFrame,
@@ -335,3 +336,5 @@ KdIsThisAKdTrap(IN PEXCEPTION_RECORD ExceptionRecord,
335336
return FALSE;
336337
}
337338
}
339+
340+
#endif

ntoskrnl/ntos.cmake

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,9 +397,12 @@ if(NOT _WINKD_)
397397
${REACTOS_SOURCE_DIR}/ntoskrnl/kd/kdio.c
398398
${REACTOS_SOURCE_DIR}/ntoskrnl/kd/kdmain.c
399399
${REACTOS_SOURCE_DIR}/ntoskrnl/kd64/kdapi.c
400+
${REACTOS_SOURCE_DIR}/ntoskrnl/kd64/kdbreak.c
400401
${REACTOS_SOURCE_DIR}/ntoskrnl/kd64/kddata.c
402+
${REACTOS_SOURCE_DIR}/ntoskrnl/kd64/kdinit.c
401403
${REACTOS_SOURCE_DIR}/ntoskrnl/kd64/kdlock.c
402-
${REACTOS_SOURCE_DIR}/ntoskrnl/kd64/kdprint.c)
404+
${REACTOS_SOURCE_DIR}/ntoskrnl/kd64/kdprint.c
405+
${REACTOS_SOURCE_DIR}/ntoskrnl/kd64/kdtrap.c)
403406

404407
else() # _WINKD_
405408

0 commit comments

Comments
 (0)