From 7b4d618994587b6ba08d9794c34eb466fe121823 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herv=C3=A9=20Poussineau?= Date: Sun, 22 Sep 2024 21:40:48 +0200 Subject: [PATCH] [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: