KdpCommandString

VOID __stdcall KdpCommandString(
        _STRING *Name,
        _STRING *Command,
        INT8 PreviousMode,
        _CONTEXT *ContextRecord,
        _KTRAP_FRAME *TrapFrame,
        _KTRAP_FRAME *ExceptionFrame){
  UINT8 v9; 
  struct _KPRCB *CurrentPrcb; 
  UINT8 v11; 

  if( !PreviousMode && !(_BYTE)KdDebuggerNotPresent )
  {
    v9 = KdEnterDebugger(TrapFrame, ExceptionFrame);
    CurrentPrcb = KeGetCurrentPrcb();
    v11 = v9;
    KiSaveProcessorControlState(&CurrentPrcb->ProcessorState);
    KdpCopyContext(CurrentPrcb->Context, ContextRecord->ContextFlags, ContextRecord);
    KdpReportCommandStringStateChange(Name, Command, (_FILETIME *)CurrentPrcb->Context);
    KdpCopyContext(ContextRecord, CurrentPrcb->Context->ContextFlags, CurrentPrcb->Context);
    KiRestoreProcessorControlState(&CurrentPrcb->ProcessorState);
    KdExitDebugger(v11);
  }
}

Referenced by:

KdpTrap