ReactOS  r75214
wdbgexts.h
Go to the documentation of this file.
1 #ifndef _WDBGEXTS_
2 #define _WDBGEXTS_
3 
4 enum
5 {
8 };
9 
10 #define KD_SECONDARY_VERSION_DEFAULT 0
11 #define KD_SECONDARY_VERSION_AMD64_OBSOLETE_CONTEXT_1 0
12 #define KD_SECONDARY_VERSION_AMD64_OBSOLETE_CONTEXT_2 1
13 #define KD_SECONDARY_VERSION_AMD64_CONTEXT 2
14 
15 #if defined(_AMD64_)
16 #define CURRENT_KD_SECONDARY_VERSION KD_SECONDARY_VERSION_AMD64_CONTEXT
17 #else
18 #define CURRENT_KD_SECONDARY_VERSION KD_SECONDARY_VERSION_DEFAULT
19 #endif
20 
21 #define DBGKD_VERS_FLAG_MP 0x0001
22 #define DBGKD_VERS_FLAG_DATA 0x0002
23 #define DBGKD_VERS_FLAG_PTR64 0x0004
24 #define DBGKD_VERS_FLAG_NOMM 0x0008
25 #define DBGKD_VERS_FLAG_HSS 0x0010
26 #define DBGKD_VERS_FLAG_PARTITIONS 0x0020
27 
28 #define KDBG_TAG 'GBDK'
29 
30 typedef enum _DBGKD_MAJOR_TYPES
31 {
44 
45 //
46 // The major type is in the high byte
47 //
48 #define DBGKD_MAJOR_TYPE(MajorVersion) \
49  ((DBGKD_MAJOR_TYPES)((MajorVersion) >> 8))
50 
51 typedef struct _DBGKD_GET_VERSION32
52 {
68 
70 {
75 
76 typedef struct _KDDEBUGGER_DATA32
77 {
145 
146 typedef struct _DBGKD_GET_VERSION64
147 {
163 
165 {
170 
171 typedef union _GCC_ULONG64
172 {
176 
177 typedef struct _KDDEBUGGER_DATA64
178 {
309 #if 0 // Longhorn/Vista and later
310  GCC_ULONG64 VfCrashDataBlock;
311  GCC_ULONG64 MmBadPagesDetected;
312  GCC_ULONG64 MmZeroedPageSingleBitErrorsDetected;
313 #endif
315 
316 #endif
USHORT OffsetPcrInitialBStore
Definition: wdbgexts.h:291
GCC_ULONG64 MmSystemCacheWs
Definition: wdbgexts.h:203
USHORT OffsetKThreadState
Definition: wdbgexts.h:268
ULONG_PTR Pointer
Definition: wdbgexts.h:173
USHORT OffsetPcrBStoreLimit
Definition: wdbgexts.h:292
GCC_ULONG64 KeLoaderBlock
Definition: wdbgexts.h:286
_DBGKD_MAJOR_TYPES
Definition: wdbgexts.h:30
ULONG MmMaximumNonPagedPoolInBytes
Definition: wdbgexts.h:111
ULONG64 RealPointer
Definition: wdbgexts.h:174
ULONG MmSystemCacheStart
Definition: wdbgexts.h:100
GCC_ULONG64 MmSystemPtesEnd
Definition: wdbgexts.h:206
GCC_ULONG64 MmPagedPoolStart
Definition: wdbgexts.h:216
GCC_ULONG64 MmSpecialPoolTag
Definition: wdbgexts.h:251
GCC_ULONG64 KdPrintWritePointer
Definition: wdbgexts.h:242
ULONG PsLoadedModuleList
Definition: wdbgexts.h:88
USHORT NextCallback
Definition: wdbgexts.h:83
GCC_ULONG64 KernelVerifier
Definition: wdbgexts.h:252
GCC_ULONG64 MmProcessCommit
Definition: wdbgexts.h:225
GCC_ULONG64 MmStandbyPageListHead
Definition: wdbgexts.h:230
GCC_ULONG64 PsLoadedModuleList
Definition: wdbgexts.h:189
ULONG MmSystemRangeStart
Definition: wdbgexts.h:137
GCC_ULONG64 MmDriverCommit
Definition: wdbgexts.h:224
struct _DBGKD_GET_VERSION32 DBGKD_GET_VERSION32
ULONG MmNumberOfPhysicalPages
Definition: wdbgexts.h:110
GCC_ULONG64 MmNumberOfPhysicalPages
Definition: wdbgexts.h:211
GCC_ULONG64 PspCidTable
Definition: wdbgexts.h:191
USHORT OffsetPcrCurrentPrcb
Definition: wdbgexts.h:289
union _GCC_ULONG64 * PGCC_ULONG64
struct _KDDEBUGGER_DATA64 * PKDDEBUGGER_DATA64
USHORT OffsetPcrInitialStack
Definition: wdbgexts.h:293
struct _DBGKD_GET_VERSION64 * PDBGKD_GET_VERSION64
USHORT NextCallback
Definition: wdbgexts.h:184
ULONG MmZeroedPageListHead
Definition: wdbgexts.h:127
ULONG MmTotalCommittedPages
Definition: wdbgexts.h:121
ULONG PsLoadedModuleList
Definition: wdbgexts.h:58
USHORT FramePointer
Definition: wdbgexts.h:185
USHORT ThCallbackStack
Definition: wdbgexts.h:60
GCC_ULONG64 MmExtendedCommit
Definition: wdbgexts.h:227
USHORT SizeEThread
Definition: wdbgexts.h:283
ULONG MmResidentAvailablePages
Definition: wdbgexts.h:133
GCC_ULONG64 MmModifiedNoWritePageListHead
Definition: wdbgexts.h:232
ULONG MmModifiedPageListHead
Definition: wdbgexts.h:130
GCC_ULONG64 MmTotalCommittedPages
Definition: wdbgexts.h:222
GCC_ULONG64 KiBugcheckData
Definition: wdbgexts.h:197
USHORT OffsetKThreadBStore
Definition: wdbgexts.h:269
UCHAR KdSecondaryVersion
Definition: wdbgexts.h:151
ULONG MmAvailablePages
Definition: wdbgexts.h:132
USHORT OffsetPrcbNumber
Definition: wdbgexts.h:282
GCC_ULONG64 MmAllocatedNonPagedPool
Definition: wdbgexts.h:254
ULONG ExpPagedPoolDescriptor
Definition: wdbgexts.h:92
GCC_ULONG64 MmNumberOfPagingFiles
Definition: wdbgexts.h:208
GCC_ULONG64 ObpRootDirectoryObject
Definition: wdbgexts.h:199
USHORT OffsetKThreadInitialStack
Definition: wdbgexts.h:266
ULONG KeUserCallbackDispatcher
Definition: wdbgexts.h:64
USHORT OffsetPrcbVendorString
Definition: wdbgexts.h:280
ULONG MmModifiedNoWritePageListHead
Definition: wdbgexts.h:131
ULONG64 KernBase
Definition: wdbgexts.h:180
GCC_ULONG64 MmAvailablePages
Definition: wdbgexts.h:233
ULONG MmSharedCommit
Definition: wdbgexts.h:122
ULONG64 SavedContext
Definition: wdbgexts.h:182
USHORT OffsetPrcbProcStateContext
Definition: wdbgexts.h:281
GCC_ULONG64 PsActiveProcessHead
Definition: wdbgexts.h:190
ULONG MmNumberOfPagingFiles
Definition: wdbgexts.h:107
GCC_ULONG64 ExpSystemResourcesList
Definition: wdbgexts.h:192
GCC_ULONG64 MmSystemParentTablePage
Definition: wdbgexts.h:261
struct _KDDEBUGGER_DATA32 * PKDDEBUGGER_DATA32
GCC_ULONG64 MmSizeOfPagedPoolInBytes
Definition: wdbgexts.h:220
GCC_ULONG64 MmNonPagedPoolEnd
Definition: wdbgexts.h:215
ULONG MmTotalCommitLimit
Definition: wdbgexts.h:120
uint32_t ULONG_PTR
Definition: typedefs.h:64
struct _DBGKD_GET_VERSION32 * PDBGKD_GET_VERSION32
GCC_ULONG64 MmTriageActionTaken
Definition: wdbgexts.h:250
GCC_ULONG64 MmPagedPoolEnd
Definition: wdbgexts.h:217
struct _DBGKD_GET_VERSION64 DBGKD_GET_VERSION64
GCC_ULONG64 MmVirtualTranslationBase
Definition: wdbgexts.h:262
GCC_ULONG64 MmPagedPoolCommit
Definition: wdbgexts.h:226
GCC_ULONG64 MmVerifierData
Definition: wdbgexts.h:253
GCC_ULONG64 MmTotalCommitLimit
Definition: wdbgexts.h:221
USHORT OffsetKThreadBStoreLimit
Definition: wdbgexts.h:270
GCC_ULONG64 MmMaximumNonPagedPoolInBytes
Definition: wdbgexts.h:212
ULONG MmHighestUserAddress
Definition: wdbgexts.h:136
GCC_ULONG64 CmNtCSDVersion
Definition: wdbgexts.h:257
GCC_ULONG64 KiNormalSystemCall
Definition: wdbgexts.h:246
GCC_ULONG64 BreakpointWithStatus
Definition: wdbgexts.h:181
USHORT OffsetPrcbCurrentThread
Definition: wdbgexts.h:277
GCC_ULONG64 MmSystemPtesStart
Definition: wdbgexts.h:205
ULONG BreakpointWithStatus
Definition: wdbgexts.h:80
ULONG MmNonPagedSystemStart
Definition: wdbgexts.h:112
USHORT PaeEnabled
Definition: wdbgexts.h:85
USHORT FramePointer
Definition: wdbgexts.h:84
uint64_t ULONG64
Definition: typedefs.h:66
GCC_ULONG64 IopErrorLogListHead
Definition: wdbgexts.h:198
USHORT ProtocolVersion
Definition: wdbgexts.h:55
GCC_ULONG64 IopTriageDumpDataBlocks
Definition: wdbgexts.h:308
ULONG PsActiveProcessHead
Definition: wdbgexts.h:89
USHORT OffsetEprocessDirectoryTableBase
Definition: wdbgexts.h:274
GCC_ULONG64 MmSessionBase
Definition: wdbgexts.h:259
USHORT ThCallbackStack
Definition: wdbgexts.h:183
ULONG MmDriverCommit
Definition: wdbgexts.h:123
GCC_ULONG64 KiProcessorBlock
Definition: wdbgexts.h:247
GCC_ULONG64 MmSessionSize
Definition: wdbgexts.h:260
USHORT OffsetKThreadKernelStack
Definition: wdbgexts.h:265
USHORT OffsetPcrContainedPrcb
Definition: wdbgexts.h:290
ULONG64 MmPageSize
Definition: wdbgexts.h:219
GCC_ULONG64 KiCallUserMode
Definition: wdbgexts.h:187
GCC_ULONG64 MmNonPagedPoolStart
Definition: wdbgexts.h:214
GCC_ULONG64 MmHighestUserAddress
Definition: wdbgexts.h:237
ULONG ExpNumberOfPagedPools
Definition: wdbgexts.h:93
USHORT OffsetPrcbCpuType
Definition: wdbgexts.h:279
GCC_ULONG64 MmSystemCacheStart
Definition: wdbgexts.h:201
ULONG64 KeUserCallbackDispatcher
Definition: wdbgexts.h:188
struct _DBGKD_DEBUG_DATA_HEADER64 DBGKD_DEBUG_DATA_HEADER64
GCC_ULONG64 MmLastUnloadedDriver
Definition: wdbgexts.h:249
ULONG KiCallUserMode
Definition: wdbgexts.h:86
struct _KDDEBUGGER_DATA64 KDDEBUGGER_DATA64
GCC_ULONG64 MmSystemRangeStart
Definition: wdbgexts.h:238
ULONG ObpTypeObjectType
Definition: wdbgexts.h:99
USHORT Gdt64R3CmTeb
Definition: wdbgexts.h:306
ULONG PoolTrackTable
Definition: wdbgexts.h:134
ULONG MmPagedPoolEnd
Definition: wdbgexts.h:116
GCC_ULONG64 ExpPagedPoolDescriptor
Definition: wdbgexts.h:193
ULONG DebuggerDataList
Definition: wdbgexts.h:66
ULONG MmStandbyPageListHead
Definition: wdbgexts.h:129
struct _DBGKD_DEBUG_DATA_HEADER64 * PDBGKD_DEBUG_DATA_HEADER64
USHORT OffsetPcrSelfPcr
Definition: wdbgexts.h:288
GCC_ULONG64 NonPagedPoolDescriptor
Definition: wdbgexts.h:236
ULONG MmHighestPhysicalPage
Definition: wdbgexts.h:109
ULONG MmSubsectionBase
Definition: wdbgexts.h:106
ULONG64 PsLoadedModuleList
Definition: wdbgexts.h:160
USHORT OffsetPcrStackLimit
Definition: wdbgexts.h:294
GCC_ULONG64 IopNumTriageDumpDataBlocks
Definition: wdbgexts.h:307
GCC_ULONG64 NtBuildLab
Definition: wdbgexts.h:245
USHORT Unused[1]
Definition: wdbgexts.h:158
GCC_ULONG64 PoolTrackTable
Definition: wdbgexts.h:235
ULONG KeBugCheckCallbackListHead
Definition: wdbgexts.h:95
GCC_ULONG64 MmSubsectionBase
Definition: wdbgexts.h:207
GCC_ULONG64 KeBugCheckCallbackListHead
Definition: wdbgexts.h:196
USHORT OffsetPrcbProcStateSpecialReg
Definition: wdbgexts.h:296
GCC_ULONG64 MmModifiedPageListHead
Definition: wdbgexts.h:231
unsigned char UCHAR
Definition: xmlstorage.h:181
ULONG MmSystemCacheEnd
Definition: wdbgexts.h:101
GCC_ULONG64 KeTimeIncrement
Definition: wdbgexts.h:195
ULONG MmNonPagedPoolStart
Definition: wdbgexts.h:113
USHORT OffsetPrcbPcrPage
Definition: wdbgexts.h:295
USHORT OffsetKThreadTeb
Definition: wdbgexts.h:264
ULONG SavedContext
Definition: wdbgexts.h:81
GCC_ULONG64 MmUnloadedDrivers
Definition: wdbgexts.h:248
GCC_ULONG64 MmNonPagedSystemStart
Definition: wdbgexts.h:213
GCC_ULONG64 MmSystemCacheEnd
Definition: wdbgexts.h:202
ULONG MmSystemPtesStart
Definition: wdbgexts.h:104
ULONG MmPagedPoolCommit
Definition: wdbgexts.h:125
ULONG MmSizeOfPagedPoolInBytes
Definition: wdbgexts.h:119
ULONG KdPrintCircularBuffer
Definition: wdbgexts.h:139
ULONG KdPrintCircularBufferEnd
Definition: wdbgexts.h:140
ULONG KdPrintRolloverCount
Definition: wdbgexts.h:142
ULONG MmSystemCacheWs
Definition: wdbgexts.h:102
USHORT Gdt64R3CmCode
Definition: wdbgexts.h:305
USHORT OffsetEprocessPeb
Definition: wdbgexts.h:272
GCC_ULONG64 MmPeakCommitment
Definition: wdbgexts.h:255
ULONG MmLoadedUserImageList
Definition: wdbgexts.h:143
ULONG ObpRootDirectoryObject
Definition: wdbgexts.h:98
GCC_ULONG64 MmTotalCommitLimitMaximum
Definition: wdbgexts.h:256
GCC_ULONG64 MmPfnDatabase
Definition: wdbgexts.h:204
USHORT ThCallbackStack
Definition: wdbgexts.h:82
ULONG KeTimeIncrement
Definition: wdbgexts.h:94
ULONG MmPagedPoolStart
Definition: wdbgexts.h:115
USHORT OffsetKThreadApcProcess
Definition: wdbgexts.h:267
ULONG MmSystemPtesEnd
Definition: wdbgexts.h:105
struct _DBGKD_DEBUG_DATA_HEADER32 DBGKD_DEBUG_DATA_HEADER32
unsigned short USHORT
Definition: pedump.c:61
GCC_ULONG64 MmLoadedUserImageList
Definition: wdbgexts.h:244
ULONG MmExtendedCommit
Definition: wdbgexts.h:126
GCC_ULONG64 ExpNumberOfPagedPools
Definition: wdbgexts.h:194
USHORT SizeEProcess
Definition: wdbgexts.h:271
ULONG KdPrintWritePointer
Definition: wdbgexts.h:141
ULONG IopErrorLogListHead
Definition: wdbgexts.h:97
struct _DBGKD_DEBUG_DATA_HEADER32 * PDBGKD_DEBUG_DATA_HEADER32
USHORT OffsetPrcbMhz
Definition: wdbgexts.h:278
GCC_ULONG64 MmPagedPoolInformation
Definition: wdbgexts.h:218
ULONG NonPagedPoolDescriptor
Definition: wdbgexts.h:135
USHORT OffsetEprocessParentCID
Definition: wdbgexts.h:273
ULONG KiBugcheckData
Definition: wdbgexts.h:96
GCC_ULONG64 MmResidentAvailablePages
Definition: wdbgexts.h:234
USHORT OffsetKThreadNextProcessor
Definition: wdbgexts.h:263
GCC_ULONG64 MmUserProbeAddress
Definition: wdbgexts.h:239
ULONG MmProcessCommit
Definition: wdbgexts.h:124
enum _DBGKD_MAJOR_TYPES DBGKD_MAJOR_TYPES
GCC_ULONG64 ObpTypeObjectType
Definition: wdbgexts.h:200
GCC_ULONG64 KdPrintBufferSize
Definition: wdbgexts.h:285
ULONG MmPagedPoolInformation
Definition: wdbgexts.h:117
GCC_ULONG64 KdPrintCircularBuffer
Definition: wdbgexts.h:240
GCC_ULONG64 MmLowestPhysicalPage
Definition: wdbgexts.h:209
GCC_ULONG64 KdPrintCircularBufferPtr
Definition: wdbgexts.h:284
ULONG BreakpointWithStatus
Definition: wdbgexts.h:65
unsigned int ULONG
Definition: retypes.h:1
ULONG MmNonPagedPoolEnd
Definition: wdbgexts.h:114
union _GCC_ULONG64 GCC_ULONG64
ULONG MmUserProbeAddress
Definition: wdbgexts.h:138
ULONG ExpSystemResourcesList
Definition: wdbgexts.h:91
GCC_ULONG64 MmFreePageListHead
Definition: wdbgexts.h:229
DBGKD_DEBUG_DATA_HEADER32 Header
Definition: wdbgexts.h:78
GCC_ULONG64 KdPrintRolloverCount
Definition: wdbgexts.h:243
DBGKD_DEBUG_DATA_HEADER64 Header
Definition: wdbgexts.h:179
USHORT OffsetPrcbDpcRoutine
Definition: wdbgexts.h:276
GCC_ULONG64 MmSharedCommit
Definition: wdbgexts.h:223
struct _KDDEBUGGER_DATA32 KDDEBUGGER_DATA32
ULONG MmLowestPhysicalPage
Definition: wdbgexts.h:108
ULONG MmFreePageListHead
Definition: wdbgexts.h:128
ULONG64 DebuggerDataList
Definition: wdbgexts.h:161
GCC_ULONG64 KdPrintCircularBufferEnd
Definition: wdbgexts.h:241
GCC_ULONG64 MmPhysicalMemoryBlock
Definition: wdbgexts.h:258
ULONG KeUserCallbackDispatcher
Definition: wdbgexts.h:87
GCC_ULONG64 MmZeroedPageListHead
Definition: wdbgexts.h:228
GCC_ULONG64 MmHighestPhysicalPage
Definition: wdbgexts.h:210