ReactOS
0.4.9-dev-728-g3d012a4
|
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 |
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 KD_BREAKPOINT_ACTIVE 0x01 |
Definition at line 40 of file kd64.h.
Referenced by KdpAddBreakpoint(), KdpDeleteBreakpointRange(), KdpRestoreAllBreakpoints(), KdpSuspendBreakPoint(), and KdSetOwedBreakpoints().
#define KD_BREAKPOINT_EXPIRED 0x08 |
Definition at line 43 of file kd64.h.
Referenced by KdpAddBreakpoint(), KdpDeleteBreakpoint(), KdpLowRestoreBreakpoint(), KdpLowWriteContent(), and KdSetOwedBreakpoints().
#define KD_BREAKPOINT_MAX 32 |
Definition at line 23 of file kd64.h.
Referenced by KdInitSystem(), KdpAddBreakpoint(), KdpDeleteBreakpoint(), KdpDeleteBreakpointRange(), KdpRestoreAllBreakpoints(), KdpSuspendAllBreakPoints(), and KdSetOwedBreakpoints().
#define KD_BREAKPOINT_PENDING 0x02 |
Definition at line 41 of file kd64.h.
Referenced by KdpAddBreakpoint(), KdpLowRestoreBreakpoint(), KdpLowWriteContent(), and KdSetOwedBreakpoints().
#define KD_BREAKPOINT_SUSPENDED 0x04 |
Definition at line 42 of file kd64.h.
Referenced by KdpDeleteBreakpoint(), KdpRestoreAllBreakpoints(), KdpSuspendBreakPoint(), and KdSetOwedBreakpoints().
Definition at line 35 of file kd64.h.
Referenced by KdpAddBreakpoint(), and KdSetOwedBreakpoints().
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 | ||
) |
Definition at line 174 of file kdinit.c.
Referenced by IoInitSystem(), KdEnableDebuggerWithLock(), KeEnterKernelDebugger(), KiInitializeSystem(), KiSystemStartup(), KiSystemStartupReal(), and Phase1InitializationDiscard().
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 133 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 PULONG ActualSize | OPTIONAL | ||
) |
Definition at line 46 of file kdapi.c.
Referenced by 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 412 of file kdprint.c.
Definition at line 22 of file kdx64.c.
Referenced by KdpSendWaitContinue().
Definition at line 20 of file kdapi.c.
Referenced by KdpCommandString(), KdpGetContext(), KdpGetContextEx(), KdpPrint(), 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 LPSTR | String, | ||
IN USHORT | Length, | ||
IN KPROCESSOR_MODE | PreviousMode, | ||
IN PKTRAP_FRAME | TrapFrame, | ||
IN PKEXCEPTION_FRAME | ExceptionFrame, | ||
OUT PBOOLEAN | Handled | ||
) |
Definition at line 317 of file kdprint.c.
Referenced by KdpTrap().
USHORT NTAPI KdpPrompt | ( | IN LPSTR | PromptString, |
IN USHORT | PromptLength, | ||
OUT LPSTR | ResponseString, | ||
IN USHORT | MaximumResponseLength, | ||
IN KPROCESSOR_MODE | PreviousMode, | ||
IN PKTRAP_FRAME | TrapFrame, | ||
IN PKEXCEPTION_FRAME | ExceptionFrame | ||
) |
Referenced by KdpEnterDebuggerException(), and 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 271 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 172 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 34 of file kdapi.c.
Referenced by KdpReportCommandStringStateChange(), and KdpSetCommonState().
Definition at line 105 of file kdbreak.c.
Referenced by KiTrap0EHandler().
Definition at line 88 of file kdinit.c.
Referenced by PspInitializeSystemDll().
BOOLEAN BreakpointsSuspended |
Definition at line 99 of file kddata.c.
Referenced by KdpRestoreAllBreakpoints(), and KdpSuspendAllBreakPoints().
ULONG Kd_WIN2000_Mask |
Definition at line 24 of file kdmain.c.
Referenced by KdpPrint(), 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().
PULONG KdComponentTable[104] |
Definition at line 33 of file kdmain.c.
Referenced by KdpPrint(), NtQueryDebugFilterState(), and NtSetDebugFilterState().
ULONG KdComponentTableSize |
Definition at line 360 of file kddata.c.
Referenced by KdpPrint(), NtQueryDebugFilterState(), and NtSetDebugFilterState().
KDDEBUGGER_DATA64 KdDebuggerDataBlock |
Definition at line 21 of file kdpacket.c.
ULONG KdDisableCount |
Definition at line 90 of file kddata.c.
Referenced by KdDisableDebuggerWithLock(), and KdEnableDebuggerWithLock().
BOOLEAN KdEnteredDebugger |
Definition at line 17 of file kdmain.c.
Referenced by KdEnterDebugger().
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 23 of file kdmain.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 366 of file kddata.c.
Referenced by KdRegisterDebuggerDataBlock().
LIST_ENTRY KdpDebuggerDataListHead |
Definition at line 365 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().
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 548 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 371 of file kddata.c.
Referenced by KdInitSystem(), KdpSysGetVersion(), and KiDispatchException().
PKDEBUG_ROUTINE KiDebugRoutine |
Definition at line 504 of file kdmain.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().