ReactOS 0.4.16-dev-338-g34e76ad
|
Go to the source code of this file.
Classes | |
struct | _BREAKPOINT_ENTRY |
Macros | |
#define | KD_DEFAULT_LOG_BUFFER_SIZE 0x1000 |
#define | KDP_MSG_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) |
#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 2066 of file kdapi.c.
Referenced by KdDisableDebugger(), and KdInitSystem().
Definition at line 1990 of file kdapi.c.
Referenced by KdEnableDebugger(), and KeBugCheckWithTf().
BOOLEAN NTAPI KdEnterDebugger | ( | IN PKTRAP_FRAME | TrapFrame, |
IN PKEXCEPTION_FRAME | ExceptionFrame | ||
) |
Definition at line 1902 of file kdapi.c.
Referenced by KdpCommandString(), KdpPrint(), KdpPrompt(), KdpReport(), KdpSymbol(), KdRefreshDebuggerNotPresent(), and KdSetOwedBreakpoints().
Definition at line 1955 of file kdapi.c.
Referenced by KdpCommandString(), KdpPrint(), KdpPrompt(), KdpReport(), KdpSymbol(), KdRefreshDebuggerNotPresent(), and KdSetOwedBreakpoints().
Definition at line 161 of file kdinit.c.
Referenced by KdEnableDebuggerWithLock(), KeEnterKernelDebugger(), KiInitializeSystem(), KiSystemStartup(), and Phase1InitializationDiscard().
BOOLEAN NTAPI KdIsThisAKdTrap | ( | IN PEXCEPTION_RECORD | ExceptionRecord, |
IN PCONTEXT | Context, | ||
IN KPROCESSOR_MODE | PreviousMode | ||
) |
Definition at line 317 of file kdtrap.c.
Referenced by KiDispatchException().
Definition at line 63 of file kdprint.c.
Referenced by KdpPrint(), and KdpPrompt().
Definition at line 20 of file kdbreak.c.
Referenced by KdpWriteBreakpoint().
Definition at line 364 of file kdx64.c.
Referenced by KdDisableDebuggerWithLock().
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 224 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 55 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 340 of file kdbreak.c.
Referenced by KdpSetCommonState().
Definition at line 528 of file kdprint.c.
Definition at line 22 of file kdx64.c.
Referenced by KdpSendWaitContinue().
Definition at line 27 of file kdapi.c.
Referenced by KdLogDbgPrint(), 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 445 of file kdprint.c.
Referenced by KdpPrintFromUser(), and KdpTrap().
Definition at line 109 of file kdprint.c.
Referenced by KdpDprintf(), and KdpPrint().
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 304 of file kdprint.c.
Referenced by KdpTrap().
VOID NTAPI KdpReportCommandStringStateChange | ( | IN PSTRING | NameString, |
IN PSTRING | CommandString, | ||
IN OUT PCONTEXT | Context | ||
) |
Definition at line 1678 of file kdapi.c.
Referenced by KdpCommandString().
BOOLEAN NTAPI KdpReportExceptionStateChange | ( | IN PEXCEPTION_RECORD | ExceptionRecord, |
IN OUT PCONTEXT | Context, | ||
IN BOOLEAN | SecondChanceException | ||
) |
Definition at line 1755 of file kdapi.c.
Referenced by KdpReport(), and KdReportProcessorChange().
VOID NTAPI KdpReportLoadSymbolsStateChange | ( | IN PSTRING | PathName, |
IN PKD_SYMBOLS_INFO | SymbolInfo, | ||
IN BOOLEAN | Unload, | ||
IN OUT PCONTEXT | Context | ||
) |
Definition at line 1606 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().
Definition at line 407 of file kdbreak.c.
Referenced by KdDisableDebuggerWithLock().
Definition at line 391 of file kdbreak.c.
Referenced by KdpSuspendAllBreakPoints().
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 263 of file kdprint.c.
Referenced by KdpTrap().
Definition at line 356 of file kdx64.c.
Referenced by KdpCheckLowMemory().
VOID NTAPI KdpSysGetVersion | ( | IN PDBGKD_GET_VERSION64 | Version | ) |
Definition at line 433 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 | ||
) |
Definition at line 134 of file kdx64.c.
Referenced by KdpGetBusData().
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 | ||
) |
Definition at line 148 of file kdx64.c.
Referenced by KdpSetBusData().
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().
Definition at line 115 of file kdx64.c.
Referenced by KdpWriteMachineSpecificRegister().
VOID NTAPI KdpTimeSlipDpcRoutine | ( | IN PKDPC | Dpc, |
IN PVOID | DeferredContext, | ||
IN PVOID | SystemArgument1, | ||
IN PVOID | SystemArgument2 | ||
) |
Definition at line 1837 of file kdapi.c.
Referenced by KdInitSystem().
Definition at line 1863 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 42 of file kdapi.c.
Referenced by KdpReportCommandStringStateChange(), and KdpSetCommonState().
KCONTINUE_STATUS NTAPI KdReportProcessorChange | ( | VOID | ) |
Definition at line 1810 of file kdapi.c.
Referenced by KiProcessorFreezeHandler().
Definition at line 105 of file kdbreak.c.
Referenced by KiTrap0EHandler().
Definition at line 108 of file kdinit.c.
Referenced by PspInitializeSystemDll().
|
extern |
Definition at line 98 of file kddata.c.
Referenced by KdpRestoreAllBreakpoints(), and KdpSuspendAllBreakPoints().
|
extern |
Definition at line 245 of file kddata.c.
Referenced by NtQueryDebugFilterState(), and NtSetDebugFilterState().
|
extern |
Definition at line 143 of file kddata.c.
Referenced by NtQueryDebugFilterState(), and NtSetDebugFilterState().
|
extern |
Definition at line 83 of file kddata.c.
Referenced by KdInitSystem(), and KdpStub().
|
extern |
Definition at line 84 of file kddata.c.
Referenced by KdChangeOption(), KdDisableDebuggerWithLock(), KdEnableDebuggerWithLock(), and KdInitSystem().
|
extern |
Definition at line 79 of file kddata.c.
Referenced by ExpInitializeExecutive(), and KdInitSystem().
|
extern |
Definition at line 314 of file kddata.c.
Referenced by NtQueryDebugFilterState(), and NtSetDebugFilterState().
|
extern |
Definition at line 484 of file kddata.c.
Referenced by NtQueryDebugFilterState(), and NtSetDebugFilterState().
|
extern |
Definition at line 21 of file kdpacket.c.
Referenced by GetVersionSendHandler().
|
extern |
Definition at line 89 of file kddata.c.
Referenced by KdDisableDebuggerWithLock(), and KdEnableDebuggerWithLock().
|
extern |
Definition at line 88 of file kddata.c.
Referenced by KdEnterDebugger().
|
extern |
Definition at line 85 of file kddata.c.
Referenced by KdInitSystem(), and KiDispatchException().
|
extern |
Definition at line 96 of file kddata.c.
Referenced by KdpAddBreakpoint(), KdpLowRestoreBreakpoint(), KdpLowWriteContent(), and KdSetOwedBreakpoints().
|
extern |
Definition at line 95 of file kddata.c.
Referenced by KdInitSystem(), KdpAddBreakpoint(), KdpDeleteBreakpoint(), KdpDeleteBreakpointRange(), KdpLowRestoreBreakpoint(), KdpLowWriteContent(), KdpRestoreAllBreakpoints(), KdpSuspendBreakPoint(), and KdSetOwedBreakpoints().
|
extern |
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().
|
extern |
Definition at line 69 of file kddata.c.
Referenced by KdpGetContext(), KdpGetContextEx(), KdpSendWaitContinue(), KdpSetContext(), and KdpSetContextEx().
|
extern |
Definition at line 68 of file kddata.c.
Referenced by KdPollBreakIn(), and KdpReport().
ULONG_PTR KdpCurrentSymbolEnd |
Definition at line 568 of file kd64.h.
Referenced by KdpGetStateChange().
|
extern |
Definition at line 104 of file kddata.c.
Referenced by KdpGetStateChange().
|
extern |
Definition at line 490 of file kddata.c.
Referenced by KdRegisterDebuggerDataBlock().
|
extern |
Definition at line 489 of file kddata.c.
Referenced by KdInitSystem(), and KdRegisterDebuggerDataBlock().
|
extern |
Definition at line 67 of file kddata.c.
Referenced by KdEnterDebugger(), KdPollBreakIn(), KdpPortLock(), and KdpPortUnlock().
|
extern |
Definition at line 87 of file kddata.c.
Referenced by KdInitSystem().
|
extern |
Definition at line 90 of file kddata.c.
Referenced by KdInitSystem().
|
extern |
Definition at line 80 of file kddata.c.
Referenced by KdChangeOption(), KdDisableDebuggerWithLock(), KdInitSystem(), KdpStub(), KdRefreshDebuggerNotPresent(), KeBugCheckWithTf(), and KeEnterKernelDebugger().
|
extern |
Definition at line 126 of file kddata.c.
Referenced by KdpPrintString(), KdpPromptString(), KdpReportCommandStringStateChange(), and KdpSendWaitContinue().
|
extern |
Definition at line 99 of file kddata.c.
Referenced by KdpSendWaitContinue().
|
extern |
Definition at line 97 of file kddata.c.
Referenced by KdInitSystem(), KdpAddBreakpoint(), KdpLowRestoreBreakpoint(), KdpLowWriteContent(), and KdSetOwedBreakpoints().
|
extern |
Definition at line 127 of file kddata.c.
Referenced by KdpReportLoadSymbolsStateChange().
|
extern |
Definition at line 66 of file kddata.c.
Referenced by KdEnterDebugger(), and KdExitDebugger().
|
extern |
Definition at line 138 of file kddata.c.
Referenced by KdLogDbgPrint().
|
extern |
Definition at line 86 of file kddata.c.
Referenced by KdDisableDebuggerWithLock(), KdEnableDebuggerWithLock(), and KdpStub().
|
extern |
Definition at line 136 of file kddata.c.
Referenced by KdLogDbgPrint().
|
extern |
Definition at line 135 of file kddata.c.
Referenced by KdLogDbgPrint().
|
extern |
|
extern |
Definition at line 134 of file kddata.c.
Referenced by KdLogDbgPrint().
|
extern |
Definition at line 133 of file kddata.c.
Referenced by KdLogDbgPrint().
|
extern |
Definition at line 115 of file kddata.c.
Referenced by KdExitDebugger(), KdInitSystem(), and KdpTimeSlipWork().
|
extern |
Definition at line 119 of file kddata.c.
Referenced by KdpTimeSlipWork().
|
extern |
Definition at line 120 of file kddata.c.
Referenced by KdpTimeSlipWork().
|
extern |
Definition at line 118 of file kddata.c.
Referenced by KdExitDebugger(), KdpTimeSlipDpcRoutine(), and Phase1InitializationDiscard().
|
extern |
Definition at line 116 of file kddata.c.
Referenced by KdInitSystem(), and KdpTimeSlipWork().
|
extern |
Definition at line 117 of file kddata.c.
Referenced by KdInitSystem(), and KdpTimeSlipDpcRoutine().
LARGE_INTEGER KdTimerDifference |
Definition at line 550 of file kd64.h.
Referenced by KdEnterDebugger().
LARGE_INTEGER KdTimerStart |
Definition at line 550 of file kd64.h.
Referenced by KdEnterDebugger(), KdExitDebugger(), and KdInitSystem().
|
extern |
Definition at line 121 of file kddata.c.
Referenced by KdEnterDebugger(), and KdExitDebugger().
|
extern |
Definition at line 495 of file kddata.c.
Referenced by KdInitSystem(), KdpSysGetVersion(), and KiDispatchException().
|
extern |
Definition at line 74 of file kddata.c.
Referenced by KdDisableDebuggerWithLock(), KdInitSystem(), and KiDispatchException().
|
extern |
Definition at line 109 of file kddata.c.
Referenced by DumpTraceData().
|
extern |
Definition at line 110 of file kddata.c.
Referenced by DumpTraceData().