Skip to content

Commit 5547b74

Browse files
hpoussinHBelusca
authored andcommitted
[NTOS:KD64] Fix freezes on first chance exception when KDBG is enabled and KdIgnoreUmExceptions is TRUE
This fixes the following use case: - Execute 'kdbgctrl.exe -du' - Execute 'kdbgctrl.exe -cu' - See that last command never finishes
1 parent 7068a79 commit 5547b74

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

ntoskrnl/kd64/kdtrap.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,6 @@ KdIsThisAKdTrap(IN PEXCEPTION_RECORD ExceptionRecord,
318318
IN PCONTEXT Context,
319319
IN KPROCESSOR_MODE PreviousMode)
320320
{
321-
#ifdef _WINKD_
322321
/*
323322
* Determine if this is a valid debug service call and make sure that
324323
* it isn't a software breakpoint
@@ -335,8 +334,4 @@ KdIsThisAKdTrap(IN PEXCEPTION_RECORD ExceptionRecord,
335334
/* We don't have to handle it */
336335
return FALSE;
337336
}
338-
#else
339-
/* KDBG has its own mechanism for ignoring user mode exceptions */
340-
return FALSE;
341-
#endif
342337
}

0 commit comments

Comments
 (0)