ReactOS
0.4.15-dev-4863-gba0d16f
|
Go to the source code of this file.
Classes | |
struct | _BREAKPOINT_ENTRY |
Macros | |
#define | KD_DEFAULT_LOG_BUFFER_SIZE 0x1000 |
#define | KD_BREAKPOINT_MAX 32 |
#define | KD_HIGHEST_USER_BREAKPOINT_ADDRESS (PVOID)0x60000000 |
#define | KD_BREAKPOINT_ACTIVE 0x01 |
#define | KD_BREAKPOINT_PENDING 0x02 |
#define | KD_BREAKPOINT_SUSPENDED 0x04 |
#define | KD_BREAKPOINT_EXPIRED 0x08 |
#define | MAX_KD_COMPONENT_TABLE_ENTRIES (DPFLTR_ENDOFTABLE_ID + 1) |
Typedefs | |
typedef struct _BREAKPOINT_ENTRY | BREAKPOINT_ENTRY |
typedef struct _BREAKPOINT_ENTRY * | PBREAKPOINT_ENTRY |
typedef BOOLEAN(NTAPI * | PKDEBUG_ROUTINE) (IN PKTRAP_FRAME TrapFrame, IN PKEXCEPTION_FRAME ExceptionFrame, IN PEXCEPTION_RECORD ExceptionRecord, IN PCONTEXT Context, IN KPROCESSOR_MODE PreviousMode, IN BOOLEAN SecondChance) |
typedef BOOLEAN(NTAPI * | PKDEBUG_SWITCH_ROUTINE) (IN PEXCEPTION_RECORD ExceptionRecord, IN PCONTEXT Context, IN BOOLEAN SecondChance) |
#define MAX_KD_COMPONENT_TABLE_ENTRIES (DPFLTR_ENDOFTABLE_ID + 1) |
typedef struct _BREAKPOINT_ENTRY BREAKPOINT_ENTRY |
typedef struct _BREAKPOINT_ENTRY * PBREAKPOINT_ENTRY |
typedef BOOLEAN(NTAPI * PKDEBUG_ROUTINE) (IN PKTRAP_FRAME TrapFrame, IN PKEXCEPTION_FRAME ExceptionFrame, IN PEXCEPTION_RECORD ExceptionRecord, IN PCONTEXT Context, IN KPROCESSOR_MODE PreviousMode, IN BOOLEAN SecondChance) |
Definition at line 2035 of file kdapi.c.
Referenced by KdDisableDebugger(), and KdInitSystem().
Definition at line 1959 of file kdapi.c.
Referenced by KdEnableDebugger(), and KeBugCheckWithTf().
BOOLEAN NTAPI KdEnterDebugger | ( | IN PKTRAP_FRAME | TrapFrame, |
IN PKEXCEPTION_FRAME | ExceptionFrame | ||
) |
Definition at line 1871 of file kdapi.c.
Referenced by KdpCommandString(), KdpPrint(), KdpPrompt(), KdpReport(), KdpSymbol(), KdRefreshDebuggerNotPresent(), and KdSetOwedBreakpoints().
Definition at line 1924 of file kdapi.c.
Referenced by KdpCommandString(), KdpPrint(), KdpPrompt(), KdpReport(), KdpSymbol(), KdRefreshDebuggerNotPresent(), and KdSetOwedBreakpoints().
BOOLEAN NTAPI KdInitSystem | ( | ULONG | Reserved, |
PLOADER_PARAMETER_BLOCK | LoaderBlock | ||
) |
BOOLEAN NTAPI KdIsThisAKdTrap | ( | IN PEXCEPTION_RECORD | ExceptionRecord, |
IN PCONTEXT | Context, | ||
IN KPROCESSOR_MODE | PreviousMode | ||
) |
Definition at line 20 of file kdbreak.c.
Referenced by KdpWriteBreakpoint().
VOID NTAPI KdpCommandString | ( | IN PSTRING | NameString, |
IN PSTRING | CommandString, | ||
IN KPROCESSOR_MODE | PreviousMode, | ||
IN PCONTEXT | ContextRecord, | ||
IN PKTRAP_FRAME | TrapFrame, | ||
IN PKEXCEPTION_FRAME | ExceptionFrame | ||
) |
Definition at line 137 of file kdprint.c.
Referenced by KdpTrap().
NTSTATUS NTAPI KdpCopyMemoryChunks | ( | _In_ ULONG64 | Address, |
_In_ PVOID | Buffer, | ||
_In_ ULONG | TotalSize, | ||
_In_ ULONG | ChunkSize, | ||
_In_ ULONG | Flags, | ||
_Out_opt_ PULONG | ActualSize | ||
) |
Definition at line 50 of file kdapi.c.
Referenced by KdbpSafeReadMemory(), KdbpSafeWriteMemory(), KdpAddBreakpoint(), KdpLowRestoreBreakpoint(), KdpLowWriteContent(), KdpReadPhysicalMemory(), KdpReadVirtualMemory(), KdpReportCommandStringStateChange(), KdpReportLoadSymbolsStateChange(), KdpSetCommonState(), KdpSysReadControlSpace(), KdpSysWriteControlSpace(), KdpWritePhysicalMemory(), KdpWriteVirtualMemory(), and KdSetOwedBreakpoints().
Definition at line 311 of file kdbreak.c.
Referenced by KdpDeleteBreakpointRange(), and KdpRestoreBreakpoint().
Definition at line 441 of file kdprint.c.
Definition at line 22 of file kdx64.c.
Referenced by KdpSendWaitContinue().
Definition at line 22 of file kdapi.c.
Referenced by KdpCommandString(), KdpGetContext(), KdpGetContextEx(), KdpPrintFromUser(), KdpPrintString(), KdpPrompt(), KdpPromptString(), KdpReport(), KdpReportExceptionStateChange(), KdpSetContext(), KdpSetContextEx(), KdpSymbol(), and KdpSysGetVersion().
Definition at line 35 of file kdlock.c.
Referenced by KdpPrintString().
Definition at line 19 of file kdlock.c.
Referenced by KdDisableDebuggerWithLock(), and KdEnableDebuggerWithLock().
Definition at line 27 of file kdlock.c.
Referenced by KdDisableDebuggerWithLock(), KdEnableDebuggerWithLock(), KdExitDebugger(), and KdPollBreakIn().
NTSTATUS NTAPI KdpPrint | ( | _In_ ULONG | ComponentId, |
_In_ ULONG | Level, | ||
_In_reads_bytes_(Length) PCHAR | String, | ||
_In_ USHORT | Length, | ||
_In_ KPROCESSOR_MODE | PreviousMode, | ||
_In_ PKTRAP_FRAME | TrapFrame, | ||
_In_ PKEXCEPTION_FRAME | ExceptionFrame, | ||
_Out_ PBOOLEAN | Handled | ||
) |
Definition at line 358 of file kdprint.c.
Referenced by KdpPrintFromUser(), and KdpTrap().
Definition at line 22 of file kdprint.c.
Referenced by KdbSymPrintAddress().
USHORT NTAPI KdpPrompt | ( | _In_reads_bytes_(PromptLength) PCHAR | PromptString, |
_In_ USHORT | PromptLength, | ||
_Out_writes_bytes_(MaximumResponseLength) PCHAR | ResponseString, | ||
_In_ USHORT | MaximumResponseLength, | ||
_In_ KPROCESSOR_MODE | PreviousMode, | ||
_In_ PKTRAP_FRAME | TrapFrame, | ||
_In_ PKEXCEPTION_FRAME | ExceptionFrame | ||
) |
Definition at line 217 of file kdprint.c.
Referenced by KdpTrap().
VOID NTAPI KdpReportCommandStringStateChange | ( | IN PSTRING | NameString, |
IN PSTRING | CommandString, | ||
IN OUT PCONTEXT | Context | ||
) |
Definition at line 1653 of file kdapi.c.
Referenced by KdpCommandString().
BOOLEAN NTAPI KdpReportExceptionStateChange | ( | IN PEXCEPTION_RECORD | ExceptionRecord, |
IN OUT PCONTEXT | Context, | ||
IN BOOLEAN | SecondChanceException | ||
) |
Definition at line 1730 of file kdapi.c.
Referenced by KdpReport(), and KdpSwitchProcessor().
VOID NTAPI KdpReportLoadSymbolsStateChange | ( | IN PSTRING | PathName, |
IN PKD_SYMBOLS_INFO | SymbolInfo, | ||
IN BOOLEAN | Unload, | ||
IN OUT PCONTEXT | Context | ||
) |
Definition at line 1581 of file kdapi.c.
Referenced by KdpSymbol().
Definition at line 368 of file kdbreak.c.
Referenced by KdEnableDebuggerWithLock().
VOID NTAPI KdpSetContextState | ( | IN PDBGKD_ANY_WAIT_STATE_CHANGE | WaitStateChange, |
IN PCONTEXT | Context | ||
) |
Definition at line 66 of file kdx64.c.
Referenced by KdpReportCommandStringStateChange(), KdpReportExceptionStateChange(), and KdpReportLoadSymbolsStateChange().
BOOLEAN NTAPI KdpStub | ( | IN PKTRAP_FRAME | TrapFrame, |
IN PKEXCEPTION_FRAME | ExceptionFrame, | ||
IN PEXCEPTION_RECORD | ExceptionRecord, | ||
IN PCONTEXT | ContextRecord, | ||
IN KPROCESSOR_MODE | PreviousMode, | ||
IN BOOLEAN | SecondChanceException | ||
) |
Definition at line 266 of file kdtrap.c.
Referenced by KdDisableDebuggerWithLock(), and KdInitSystem().
BOOLEAN NTAPI KdpSwitchProcessor | ( | IN PEXCEPTION_RECORD | ExceptionRecord, |
IN OUT PCONTEXT | ContextRecord, | ||
IN BOOLEAN | SecondChanceException | ||
) |
Definition at line 1833 of file kdapi.c.
Referenced by KdInitSystem().
VOID NTAPI KdpSymbol | ( | IN PSTRING | DllPath, |
IN PKD_SYMBOLS_INFO | SymbolInfo, | ||
IN BOOLEAN | Unload, | ||
IN KPROCESSOR_MODE | PreviousMode, | ||
IN PCONTEXT | ContextRecord, | ||
IN PKTRAP_FRAME | TrapFrame, | ||
IN PKEXCEPTION_FRAME | ExceptionFrame | ||
) |
Definition at line 176 of file kdprint.c.
Referenced by KdpTrap().
VOID NTAPI KdpSysGetVersion | ( | IN PDBGKD_GET_VERSION64 | Version | ) |
Definition at line 428 of file kdapi.c.
Referenced by KdpGetVersion().
NTSTATUS NTAPI KdpSysReadBusData | ( | IN ULONG | BusDataType, |
IN ULONG | BusNumber, | ||
IN ULONG | SlotNumber, | ||
IN ULONG | Offset, | ||
IN PVOID | Buffer, | ||
IN ULONG | Length, | ||
OUT PULONG | ActualLength | ||
) |
NTSTATUS NTAPI KdpSysReadControlSpace | ( | IN ULONG | Processor, |
IN ULONG64 | BaseAddress, | ||
IN PVOID | Buffer, | ||
IN ULONG | Length, | ||
OUT PULONG | ActualLength | ||
) |
Definition at line 162 of file kdx64.c.
Referenced by KdpReadControlSpace().
NTSTATUS NTAPI KdpSysReadIoSpace | ( | IN ULONG | InterfaceType, |
IN ULONG | BusNumber, | ||
IN ULONG | AddressSpace, | ||
IN ULONG64 | IoAddress, | ||
IN PVOID | DataValue, | ||
IN ULONG | DataSize, | ||
OUT PULONG | ActualDataSize | ||
) |
Definition at line 108 of file kdarm.c.
Referenced by KdpReadIoSpace(), and KdpReadIoSpaceExtended().
NTSTATUS NTAPI KdpSysWriteBusData | ( | IN ULONG | BusDataType, |
IN ULONG | BusNumber, | ||
IN ULONG | SlotNumber, | ||
IN ULONG | Offset, | ||
IN PVOID | Buffer, | ||
IN ULONG | Length, | ||
OUT PULONG | ActualLength | ||
) |
NTSTATUS NTAPI KdpSysWriteControlSpace | ( | IN ULONG | Processor, |
IN ULONG64 | BaseAddress, | ||
IN PVOID | Buffer, | ||
IN ULONG | Length, | ||
OUT PULONG | ActualLength | ||
) |
Definition at line 213 of file kdx64.c.
Referenced by KdpWriteControlSpace().
NTSTATUS NTAPI KdpSysWriteIoSpace | ( | IN ULONG | InterfaceType, |
IN ULONG | BusNumber, | ||
IN ULONG | AddressSpace, | ||
IN ULONG64 | IoAddress, | ||
IN PVOID | DataValue, | ||
IN ULONG | DataSize, | ||
OUT PULONG | ActualDataSize | ||
) |
Definition at line 300 of file kdx64.c.
Referenced by KdpWriteIoSpace(), and KdpWriteIoSpaceExtended().
VOID NTAPI KdpTimeSlipDpcRoutine | ( | IN PKDPC | Dpc, |
IN PVOID | DeferredContext, | ||
IN PVOID | SystemArgument1, | ||
IN PVOID | SystemArgument2 | ||
) |
Definition at line 1785 of file kdapi.c.
Referenced by KdInitSystem().
Definition at line 1811 of file kdapi.c.
Referenced by KdInitSystem().
BOOLEAN NTAPI KdpTrap | ( | IN PKTRAP_FRAME | TrapFrame, |
IN PKEXCEPTION_FRAME | ExceptionFrame, | ||
IN PEXCEPTION_RECORD | ExceptionRecord, | ||
IN PCONTEXT | ContextRecord, | ||
IN KPROCESSOR_MODE | PreviousMode, | ||
IN BOOLEAN | SecondChanceException | ||
) |
Definition at line 135 of file kdtrap.c.
Referenced by KdInitSystem(), and KdpStub().
Definition at line 37 of file kdapi.c.
Referenced by KdpReportCommandStringStateChange(), and KdpSetCommonState().
Definition at line 105 of file kdbreak.c.
Referenced by KiTrap0EHandler().
Definition at line 89 of file kdinit.c.
Referenced by PspInitializeSystemDll().
BOOLEAN BreakpointsSuspended |
Definition at line 99 of file kddata.c.
Referenced by KdpRestoreAllBreakpoints(), and KdpSuspendAllBreakPoints().
ULONG Kd_DEFAULT_Mask |
Definition at line 245 of file kddata.c.
Referenced by NtQueryDebugFilterState(), and NtSetDebugFilterState().
ULONG Kd_WIN2000_Mask |
Definition at line 143 of file kddata.c.
Referenced by NtQueryDebugFilterState(), and NtSetDebugFilterState().
BOOLEAN KdAutoEnableOnEvent |
Definition at line 84 of file kddata.c.
Referenced by KdInitSystem(), and KdpStub().
BOOLEAN KdBlockEnable |
Definition at line 85 of file kddata.c.
Referenced by KdChangeOption(), KdDisableDebuggerWithLock(), KdEnableDebuggerWithLock(), and KdInitSystem().
BOOLEAN KdBreakAfterSymbolLoad |
Definition at line 80 of file kddata.c.
Referenced by ExpInitializeExecutive(), and KdInitSystem().
PULONG KdComponentTable[MAX_KD_COMPONENT_TABLE_ENTRIES] |
Definition at line 314 of file kddata.c.
Referenced by NtQueryDebugFilterState(), and NtSetDebugFilterState().
ULONG KdComponentTableSize |
Definition at line 484 of file kddata.c.
Referenced by NtQueryDebugFilterState(), and NtSetDebugFilterState().
KDDEBUGGER_DATA64 KdDebuggerDataBlock |
Definition at line 21 of file kdpacket.c.
Referenced by GetVersionSendHandler().
ULONG KdDisableCount |
Definition at line 90 of file kddata.c.
Referenced by KdDisableDebuggerWithLock(), and KdEnableDebuggerWithLock().
BOOLEAN KdEnteredDebugger |
Definition at line 89 of file kddata.c.
Referenced by KdEnterDebugger().
BOOLEAN KdIgnoreUmExceptions |
Definition at line 86 of file kddata.c.
Referenced by KdInitSystem(), and KiDispatchException().
KD_BREAKPOINT_TYPE KdpBreakpointInstruction |
Definition at line 97 of file kddata.c.
Referenced by KdpAddBreakpoint(), KdpLowRestoreBreakpoint(), KdpLowWriteContent(), and KdSetOwedBreakpoints().
BREAKPOINT_ENTRY KdpBreakpointTable[KD_BREAKPOINT_MAX] |
Definition at line 96 of file kddata.c.
Referenced by KdInitSystem(), KdpAddBreakpoint(), KdpDeleteBreakpoint(), KdpDeleteBreakpointRange(), KdpLowRestoreBreakpoint(), KdpLowWriteContent(), KdpRestoreAllBreakpoints(), KdpSuspendBreakPoint(), and KdSetOwedBreakpoints().
KD_CONTEXT KdpContext |
Definition at line 65 of file kddata.c.
Referenced by KdInitSystem(), KdpCheckLowMemory(), KdpFillMemory(), KdpGetBusData(), KdpGetContext(), KdpGetContextEx(), KdpGetVersion(), KdpNotSupported(), KdPollBreakIn(), KdpPollBreakInWithPortLock(), KdpPrintString(), KdpPromptString(), KdpQueryMemory(), KdpReadControlSpace(), KdpReadIoSpace(), KdpReadIoSpaceExtended(), KdpReadMachineSpecificRegister(), KdpReadPhysicalMemory(), KdpReadVirtualMemory(), KdpRestoreBreakpoint(), KdpRestoreBreakPointEx(), KdpSearchMemory(), KdpSendWaitContinue(), KdpSetBusData(), KdpSetContext(), KdpSetContextEx(), KdpWriteBreakpoint(), KdpWriteBreakPointEx(), KdpWriteControlSpace(), KdpWriteCustomBreakpoint(), KdpWriteIoSpace(), KdpWriteIoSpaceExtended(), KdpWriteMachineSpecificRegister(), KdpWritePhysicalMemory(), and KdpWriteVirtualMemory().
BOOLEAN KdpContextSent |
Definition at line 69 of file kddata.c.
Referenced by KdpGetContext(), KdpGetContextEx(), KdpSendWaitContinue(), KdpSetContext(), and KdpSetContextEx().
BOOLEAN KdpControlCPressed |
Definition at line 68 of file kddata.c.
Referenced by KdPollBreakIn(), and KdpReport().
ULONG_PTR KdpCurrentSymbolEnd |
Definition at line 105 of file kddata.c.
Referenced by KdpGetStateChange().
ULONG_PTR KdpCurrentSymbolStart |
Definition at line 105 of file kddata.c.
Referenced by KdpGetStateChange().
KSPIN_LOCK KdpDataSpinLock |
Definition at line 490 of file kddata.c.
Referenced by KdRegisterDebuggerDataBlock().
LIST_ENTRY KdpDebuggerDataListHead |
Definition at line 489 of file kddata.c.
Referenced by KdInitSystem(), and KdRegisterDebuggerDataBlock().
KSPIN_LOCK KdpDebuggerLock |
Definition at line 67 of file kddata.c.
Referenced by KdEnterDebugger(), KdPollBreakIn(), KdpPortLock(), and KdpPortUnlock().
BOOLEAN KdpDebuggerStructuresInitialized |
Definition at line 88 of file kddata.c.
Referenced by KdInitSystem().
LARGE_INTEGER KdPerformanceCounterRate |
Definition at line 91 of file kddata.c.
Referenced by KdInitSystem().
BOOLEAN KdPitchDebugger |
Definition at line 81 of file kddata.c.
Referenced by KdChangeOption(), KdDisableDebuggerWithLock(), KdInitSystem(), KdpStub(), KdRefreshDebuggerNotPresent(), KeBugCheckWithTf(), and KeEnterKernelDebugger().
CHAR KdpMessageBuffer[0x1000] |
Definition at line 127 of file kddata.c.
Referenced by KdpPrintString(), KdpPromptString(), KdpReportCommandStringStateChange(), and KdpSendWaitContinue().
ULONG KdpNumInternalBreakpoints |
Definition at line 100 of file kddata.c.
Referenced by KdpSendWaitContinue().
BOOLEAN KdpOweBreakpoint |
Definition at line 98 of file kddata.c.
Referenced by KdInitSystem(), KdpAddBreakpoint(), KdpLowRestoreBreakpoint(), KdpLowWriteContent(), and KdSetOwedBreakpoints().
CHAR KdpPathBuffer[0x1000] |
Definition at line 128 of file kddata.c.
Referenced by KdpReportLoadSymbolsStateChange().
BOOLEAN KdpPortLocked |
Definition at line 66 of file kddata.c.
Referenced by KdEnterDebugger(), and KdExitDebugger().
BOOLEAN KdPreviouslyEnabled |
Definition at line 87 of file kddata.c.
Referenced by KdDisableDebuggerWithLock(), KdEnableDebuggerWithLock(), and KdpStub().
CHAR KdPrintDefaultCircularBuffer[KD_DEFAULT_LOG_BUFFER_SIZE] |
KDPC KdpTimeSlipDpc |
Definition at line 116 of file kddata.c.
Referenced by KdExitDebugger(), KdInitSystem(), and KdpTimeSlipWork().
PKEVENT KdpTimeSlipEvent |
Definition at line 120 of file kddata.c.
Referenced by KdpTimeSlipWork().
KSPIN_LOCK KdpTimeSlipEventLock |
Definition at line 121 of file kddata.c.
Referenced by KdpTimeSlipWork().
LONG KdpTimeSlipPending |
Definition at line 119 of file kddata.c.
Referenced by KdExitDebugger(), KdpTimeSlipDpcRoutine(), and Phase1InitializationDiscard().
KTIMER KdpTimeSlipTimer |
Definition at line 117 of file kddata.c.
Referenced by KdInitSystem(), and KdpTimeSlipWork().
WORK_QUEUE_ITEM KdpTimeSlipWorkItem |
Definition at line 118 of file kddata.c.
Referenced by KdInitSystem(), and KdpTimeSlipDpcRoutine().
LARGE_INTEGER KdTimerDifference |
Definition at line 122 of file kddata.c.
Referenced by KdEnterDebugger().
LARGE_INTEGER KdTimerStart |
Definition at line 553 of file kd64.h.
Referenced by KdEnterDebugger(), KdExitDebugger(), and KdInitSystem().
LARGE_INTEGER KdTimerStop |
Definition at line 122 of file kddata.c.
Referenced by KdEnterDebugger(), and KdExitDebugger().
DBGKD_GET_VERSION64 KdVersionBlock |
Definition at line 495 of file kddata.c.
Referenced by KdInitSystem(), KdpSysGetVersion(), and KiDispatchException().
PKDEBUG_ROUTINE KiDebugRoutine |
Definition at line 74 of file kddata.c.
Referenced by KdDisableDebuggerWithLock(), KdInitSystem(), and KiDispatchException().
PKDEBUG_SWITCH_ROUTINE KiDebugSwitchRoutine |
Definition at line 75 of file kddata.c.
Referenced by KdInitSystem().
ULONG TraceDataBuffer[40] |
Definition at line 110 of file kddata.c.
Referenced by DumpTraceData().
ULONG TraceDataBufferPosition |
Definition at line 111 of file kddata.c.
Referenced by DumpTraceData().