Skip to content

Commit 7b4d618

Browse files
hpoussinHBelusca
authored andcommitted
[NTOS:EX] Implement NtSystemDebugControl: SysDbgBreakPoint
1 parent 1db1bce commit 7b4d618

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

ntoskrnl/ex/dbgctrl.c

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,17 @@ NtSystemDebugControl(
271271
break;
272272

273273
case SysDbgBreakPoint:
274+
if (KdDebuggerEnabled)
275+
{
276+
DbgBreakPointWithStatus(DBG_STATUS_DEBUG_CONTROL);
277+
Status = STATUS_SUCCESS;
278+
}
279+
else
280+
{
281+
Status = STATUS_UNSUCCESSFUL;
282+
}
283+
break;
284+
274285
case SysDbgEnableKernelDebugger:
275286
case SysDbgDisableKernelDebugger:
276287
case SysDbgGetAutoKdEnable:

0 commit comments

Comments
 (0)