/* Set the context flags */
Context.ContextFlags = CONTEXT_FULL | CONTEXT_DEBUG_REGISTERS;
- /* Check if User Mode or if the debugger is enabled */
+ /* Check if User Mode or if the debugger isenabled */
if ((PreviousMode == UserMode) || (KdDebuggerEnabled))
{
/* Add the FPU Flag */
goto Handled;
}
+ /* HACK: GDB Entry */
+ if (KdpCallGdb(TrapFrame, ExceptionRecord, &Context)) goto Handled;
+
/* If the Debugger couldn't handle it, dispatch the exception */
if (RtlDispatchException(ExceptionRecord, &Context)) goto Handled;
}
goto Handled;
}
+ /* HACK: GDB Entry */
+ if (KdpCallGdb(TrapFrame, ExceptionRecord, &Context)) goto Handled;
+
/* Forward exception to user mode debugger */
if (DbgkForwardException(ExceptionRecord, TRUE, FALSE)) goto Exit;
return (NTSTATUS)OldEip;
}
-
-