https://git.reactos.org/?p=reactos.git;a=commitdiff;h=7b4d618994587b6ba08d9…
commit 7b4d618994587b6ba08d9794c34eb466fe121823
Author: Hervé Poussineau <hpoussin(a)reactos.org>
AuthorDate: Sun Sep 22 21:40:48 2024 +0200
Commit: Hermès Bélusca-Maïto <hermes.belusca-maito(a)reactos.org>
CommitDate: Tue Jan 28 22:00:48 2025 +0100
[NTOS:EX] Implement NtSystemDebugControl: SysDbgBreakPoint
---
ntoskrnl/ex/dbgctrl.c | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/ntoskrnl/ex/dbgctrl.c b/ntoskrnl/ex/dbgctrl.c
index c6553324a80..8c27e3267b0 100644
--- a/ntoskrnl/ex/dbgctrl.c
+++ b/ntoskrnl/ex/dbgctrl.c
@@ -271,6 +271,17 @@ NtSystemDebugControl(
break;
case SysDbgBreakPoint:
+ if (KdDebuggerEnabled)
+ {
+ DbgBreakPointWithStatus(DBG_STATUS_DEBUG_CONTROL);
+ Status = STATUS_SUCCESS;
+ }
+ else
+ {
+ Status = STATUS_UNSUCCESSFUL;
+ }
+ break;
+
case SysDbgEnableKernelDebugger:
case SysDbgDisableKernelDebugger:
case SysDbgGetAutoKdEnable: