16#define KD_SECONDARY_VERSION_DEFAULT 0
17#define KD_SECONDARY_VERSION_AMD64_OBSOLETE_CONTEXT_1 0
18#define KD_SECONDARY_VERSION_AMD64_OBSOLETE_CONTEXT_2 1
19#define KD_SECONDARY_VERSION_AMD64_CONTEXT 2
22#define CURRENT_KD_SECONDARY_VERSION KD_SECONDARY_VERSION_AMD64_CONTEXT
24#define CURRENT_KD_SECONDARY_VERSION KD_SECONDARY_VERSION_DEFAULT
27#define DBGKD_VERS_FLAG_MP 0x0001
28#define DBGKD_VERS_FLAG_DATA 0x0002
29#define DBGKD_VERS_FLAG_PTR64 0x0004
30#define DBGKD_VERS_FLAG_NOMM 0x0008
31#define DBGKD_VERS_FLAG_HSS 0x0010
32#define DBGKD_VERS_FLAG_PARTITIONS 0x0020
34#define KDBG_TAG 'GBDK'
54#define DBGKD_MAJOR_TYPE(MajorVersion) \
55 ((DBGKD_MAJOR_TYPES)((MajorVersion) >> 8))
178#if !defined(_WIN64) && (defined(__GNUC__) || defined(__clang__))
180typedef union _ULPTR64
187#define ULPTR64 ULONG64
259#if (NTDDI_VERSION >= NTDDI_WINXP)
265#if (NTDDI_VERSION >= NTDDI_WIN2KSP4)
279#if (NTDDI_VERSION >= NTDDI_WINXP)
286#if (NTDDI_VERSION >= NTDDI_WS03)
336#if (NTDDI_VERSION >= NTDDI_LONGHORN)
342#if (NTDDI_VERSION >= NTDDI_WIN7)
347#if (NTDDI_VERSION >= NTDDI_WIN8)
361#if (NTDDI_VERSION >= NTDDI_WINBLUE)
366#if (NTDDI_VERSION >= NTDDI_WIN10_RS1)
371#if (NTDDI_VERSION >= NTDDI_WIN10_RS5)
struct _DBGKD_DEBUG_DATA_HEADER32 * PDBGKD_DEBUG_DATA_HEADER32
struct _DBGKD_DEBUG_DATA_HEADER64 * PDBGKD_DEBUG_DATA_HEADER64
struct _KDDEBUGGER_DATA64 KDDEBUGGER_DATA64
struct _DBGKD_GET_VERSION32 DBGKD_GET_VERSION32
struct _DBGKD_GET_VERSION64 * PDBGKD_GET_VERSION64
struct _DBGKD_GET_VERSION64 DBGKD_GET_VERSION64
struct _DBGKD_DEBUG_DATA_HEADER64 DBGKD_DEBUG_DATA_HEADER64
struct _DBGKD_DEBUG_DATA_HEADER32 DBGKD_DEBUG_DATA_HEADER32
struct _KDDEBUGGER_DATA32 KDDEBUGGER_DATA32
struct _KDDEBUGGER_DATA64 * PKDDEBUGGER_DATA64
@ DBGKD_MAJOR_SINGULARITY
struct _DBGKD_GET_VERSION32 * PDBGKD_GET_VERSION32
struct _KDDEBUGGER_DATA32 * PKDDEBUGGER_DATA32
enum _DBGKD_MAJOR_TYPES DBGKD_MAJOR_TYPES
ULONG KeUserCallbackDispatcher
ULONG BreakpointWithStatus
ULONG64 PsLoadedModuleList
ULONG MmModifiedPageListHead
ULONG ObpRootDirectoryObject
ULONG BreakpointWithStatus
ULONG IopErrorLogListHead
ULONG MmStandbyPageListHead
ULONG MmLowestPhysicalPage
ULONG MmHighestUserAddress
ULONG KdPrintCircularBufferEnd
ULONG KdPrintRolloverCount
ULONG MmTotalCommittedPages
ULONG MmNumberOfPagingFiles
ULONG KdPrintWritePointer
ULONG MmSizeOfPagedPoolInBytes
ULONG ExpNumberOfPagedPools
ULONG MmHighestPhysicalPage
ULONG ExpSystemResourcesList
ULONG MmPagedPoolInformation
ULONG MmNumberOfPhysicalPages
ULONG KdPrintCircularBuffer
ULONG MmModifiedNoWritePageListHead
ULONG MmLoadedUserImageList
ULONG MmResidentAvailablePages
ULONG NonPagedPoolDescriptor
DBGKD_DEBUG_DATA_HEADER32 Header
ULONG KeUserCallbackDispatcher
ULONG MmMaximumNonPagedPoolInBytes
ULONG MmNonPagedSystemStart
ULONG ExpPagedPoolDescriptor
ULONG MmNonPagedPoolStart
ULONG KeBugCheckCallbackListHead
ULONG MmZeroedPageListHead
ULONG PsActiveProcessHead
ULPTR64 MmBadPagesDetected
ULONG OffsetEThreadIrpList
ULPTR64 MmLastUnloadedDriver
USHORT OffsetPrcbIsrStack
ULPTR64 MmMaximumNonPagedPoolInBytes
USHORT OffsetKThreadKernelStack
ULPTR64 PsActiveProcessHead
ULPTR64 MmUnloadedDrivers
ULPTR64 MmZeroedPageListHead
ULPTR64 ObpRootDirectoryObject
ULPTR64 MmSystemCacheStart
USHORT OffsetPcrCurrentPrcb
ULPTR64 KdPrintCircularBufferPtr
ULONG OffsetKThreadStackLimit
ULPTR64 PsLoadedModuleList
ULPTR64 ObpTypeObjectType
ULPTR64 KiNormalSystemCall
USHORT OffsetPcrInitialBStore
USHORT OffsetKPriQueueThreadListHead
ULONG RetpolineStubOffset
USHORT OffsetPrcbNormalDpcState
USHORT OffsetPcrContainedPrcb
ULPTR64 MmPagedPoolCommit
ULPTR64 MmPhysicalMemoryBlock
ULPTR64 MmTotalCommittedPages
ULONG OffsetKThreadStackBase
ULPTR64 IopTriageDumpDataBlocks
ULPTR64 KdPrintRolloverCount
ULPTR64 MmVirtualTranslationBase
USHORT OffsetPrcbDpcRoutine
ULPTR64 MmNonPagedPoolStart
ULPTR64 MmUserProbeAddress
USHORT OffsetKThreadState
ULONG OffsetKThreadQueueListEntry
USHORT OffsetEprocessDirectoryTableBase
ULPTR64 ExpSystemResourcesList
USHORT OffsetKThreadInitialStack
USHORT OffsetPcrInitialStack
USHORT OffsetKThreadBStore
ULPTR64 MmModifiedNoWritePageListHead
USHORT SizeKDPC_STACK_FRAME
USHORT OffsetKThreadBStoreLimit
ULPTR64 ExpPagedPoolDescriptor
ULPTR64 MmZeroedPageSingleBitErrorsDetected
ULPTR64 KdPrintWritePointer
USHORT OffsetPrcbProcStateSpecialReg
ULPTR64 KdPrintCircularBufferEnd
ULPTR64 MmNumberOfPagingFiles
ULPTR64 MmResidentAvailablePages
USHORT OffsetPrcbIdleThread
ULPTR64 MmNumberOfPhysicalPages
ULPTR64 KdPrintBufferSize
ULPTR64 MmSystemRangeStart
ULPTR64 MmPagedPoolInformation
ULPTR64 MmTriageActionTaken
ULPTR64 MmLoadedUserImageList
ULPTR64 MmStandbyPageListHead
USHORT OffsetPrcbProcStateContext
ULPTR64 MmFreePageListHead
USHORT OffsetPrcbVendorString
USHORT OffsetPrcbCurrentThread
USHORT OffsetEprocessParentCID
USHORT OffsetPcrBStoreLimit
ULPTR64 MmHighestUserAddress
ULPTR64 MmNonPagedPoolEnd
ULPTR64 KdPrintCircularBuffer
USHORT OffsetPrcbMaxBreakpoints
ULPTR64 BreakpointWithStatus
USHORT OffsetPrcbDpcStack
ULPTR64 MmTotalCommitLimit
ULPTR64 MmTotalCommitLimitMaximum
ULONG64 KeUserCallbackDispatcher
ULPTR64 IopNumTriageDumpDataBlocks
ULPTR64 KeBugCheckCallbackListHead
USHORT OffsetKThreadApcProcess
DBGKD_DEBUG_DATA_HEADER64 Header
ULPTR64 MmSizeOfPagedPoolInBytes
USHORT OffsetPcrStackLimit
ULPTR64 MmLowestPhysicalPage
ULPTR64 NonPagedPoolDescriptor
ULPTR64 MmModifiedPageListHead
ULPTR64 MmSystemPtesStart
ULONG RetpolineStubFunctionTableSize
ULPTR64 MmHighestPhysicalPage
ULPTR64 IopErrorLogListHead
USHORT OffsetPrcbMaxWatchpoints
ULPTR64 MmNonPagedSystemStart
USHORT OffsetKThreadWaitReason
ULPTR64 MmSystemParentTablePage
ULPTR64 ExpNumberOfPagedPools
ULPTR64 MmAllocatedNonPagedPool
USHORT OffsetKThreadNextProcessor
ULPTR64 RetpolineStubFunctionTable