[NTOS:KDBG] Remove dead code. Addendum to baa47fa5e and fe777bb52.

This commit is contained in:
Hermès Bélusca-Maïto
2022-11-28 00:43:22 +01:00
parent d0ab35e9da
commit 372eb0c0b8
2 changed files with 0 additions and 36 deletions

View File

@@ -1623,38 +1623,6 @@ continue_execution:
return ContinueType;
}
KD_CONTINUE_TYPE
KdbEnterDebuggerFirstChanceException(
IN OUT PKTRAP_FRAME TrapFrame)
{
EXCEPTION_RECORD64 ExceptionRecord;
KD_CONTINUE_TYPE Return;
CONTEXT Context;
/* Copy TrapFrame to Context */
RtlZeroMemory(&Context, sizeof(CONTEXT));
Context.ContextFlags = CONTEXT_CONTROL | CONTEXT_INTEGER | CONTEXT_SEGMENTS | CONTEXT_FLOATING_POINT | CONTEXT_DEBUG_REGISTERS;
#ifdef CONTEXT_EXTENDED_REGISTERS
Context.ContextFlags |= CONTEXT_EXTENDED_REGISTERS;
#endif
KeTrapFrameToContext(TrapFrame, NULL, &Context);
/* Create ExceptionRecord (assume breakpoint) */
RtlZeroMemory(&ExceptionRecord, sizeof(EXCEPTION_RECORD64));
ExceptionRecord.ExceptionCode = STATUS_BREAKPOINT;
/* Call real function */
Return = KdbEnterDebuggerException(&ExceptionRecord,
KernelMode,
&Context,
TRUE);
/* Copy back Context to TrapFrame */
KeContextToTrapFrame(&Context, NULL, TrapFrame, Context.ContextFlags, KernelMode);
return Return;
}
VOID
NTAPI
KdbpGetCommandLineSettings(

View File

@@ -257,10 +257,6 @@ KdbEnterDebuggerException(IN PEXCEPTION_RECORD64 ExceptionRecord,
IN OUT PCONTEXT Context,
IN BOOLEAN FirstChance);
KD_CONTINUE_TYPE
KdbEnterDebuggerFirstChanceException(
IN OUT PKTRAP_FRAME TrapFrame);
/* other functions */
NTSTATUS