ReactOS  r76032
windbgkd.h File Reference
#include "wdbgexts.h"
#include <pshpack4.h>
#include <poppack.h>
Include dependency graph for windbgkd.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _KD_PACKET
 
struct  _KD_CONTEXT
 
struct  _X86_DBGKD_CONTROL_SET
 
struct  _ALPHA_DBGKD_CONTROL_SET
 
struct  _IA64_DBGKD_CONTROL_SET
 
struct  _AMD64_DBGKD_CONTROL_SET
 
struct  _ARM_DBGKD_CONTROL_SET
 
struct  _DBGKD_ANY_CONTROL_SET
 
struct  _DBGKM_EXCEPTION32
 
struct  _DBGKM_EXCEPTION64
 
struct  _X86_DBGKD_CONTROL_REPORT
 
struct  _ALPHA_DBGKD_CONTROL_REPORT
 
struct  _IA64_DBGKD_CONTROL_REPORT
 
struct  _AMD64_DBGKD_CONTROL_REPORT
 
struct  _ARM_DBGKD_CONTROL_REPORT
 
struct  _DBGKD_ANY_CONTROL_REPORT
 
struct  _DBGKD_PRINT_STRING
 
struct  _DBGKD_GET_STRING
 
struct  _DBGKD_DEBUG_IO
 
struct  _DBGKD_COMMAND_STRING
 
struct  _DBGKD_LOAD_SYMBOLS32
 
struct  _DBGKD_LOAD_SYMBOLS64
 
struct  _DBGKD_WAIT_STATE_CHANGE32
 
struct  _DBGKD_WAIT_STATE_CHANGE64
 
struct  _DBGKD_ANY_WAIT_STATE_CHANGE
 
struct  _DBGKD_READ_MEMORY32
 
struct  _DBGKD_READ_MEMORY64
 
struct  _DBGKD_WRITE_MEMORY32
 
struct  _DBGKD_WRITE_MEMORY64
 
struct  _DBGKD_GET_CONTEXT
 
struct  _DBGKD_SET_CONTEXT
 
struct  _DBGKD_WRITE_BREAKPOINT32
 
struct  _DBGKD_WRITE_BREAKPOINT64
 
struct  _DBGKD_RESTORE_BREAKPOINT
 
struct  _DBGKD_CONTINUE
 
struct  _DBGKD_CONTINUE2
 
struct  _DBGKD_READ_WRITE_IO32
 
struct  _DBGKD_READ_WRITE_IO64
 
struct  _DBGKD_READ_WRITE_IO_EXTENDED32
 
struct  _DBGKD_READ_WRITE_IO_EXTENDED64
 
struct  _DBGKD_READ_WRITE_MSR
 
struct  _DBGKD_QUERY_SPECIAL_CALLS
 
struct  _DBGKD_SET_SPECIAL_CALL32
 
struct  _DBGKD_SET_SPECIAL_CALL64
 
struct  _DBGKD_SET_INTERNAL_BREAKPOINT32
 
struct  _DBGKD_SET_INTERNAL_BREAKPOINT64
 
struct  _DBGKD_GET_INTERNAL_BREAKPOINT32
 
struct  _DBGKD_GET_INTERNAL_BREAKPOINT64
 
struct  _DBGKD_BREAKPOINTEX
 
struct  _DBGKD_SEARCH_MEMORY
 
struct  _DBGKD_GET_SET_BUS_DATA
 
struct  _DBGKD_FILL_MEMORY
 
struct  _DBGKD_QUERY_MEMORY
 
struct  _DBGKD_SWITCH_PARTITION
 
struct  _DBGKD_CONTEXT_EX
 
struct  _DBGKD_WRITE_CUSTOM_BREAKPOINT
 
struct  _DBGKD_MANIPULATE_STATE32
 
struct  _DBGKD_MANIPULATE_STATE64
 
struct  _DBGKD_CREATE_FILE
 
struct  _DBGKD_READ_FILE
 
struct  _DBGKD_WRITE_FILE
 
struct  _DBGKD_CLOSE_FILE
 
struct  _DBGKD_FILE_IO
 
struct  _DBGKD_REQUEST_BREAKPOINT
 
struct  _DBGKD_RELEASE_BREAKPOINT
 
struct  _DBGKD_CONTROL_REQUEST
 
struct  _DBGKD_PRINT_TRACE
 
struct  _DBGKD_TRACE_IO
 

Macros

#define COPYSE(p64, p32, f)   p64->f = (ULONG64)(LONG64)(LONG)p32->f
 
#define PACKET_MAX_SIZE   4000
 
#define DBGKD_MAXSTREAM   16
 
#define INITIAL_PACKET_ID   0x80800000
 
#define SYNC_PACKET_ID   0x00000800
 
#define BREAKIN_PACKET   0x62626262
 
#define BREAKIN_PACKET_BYTE   0x62
 
#define PACKET_LEADER   0x30303030
 
#define PACKET_LEADER_BYTE   0x30
 
#define CONTROL_PACKET_LEADER   0x69696969
 
#define CONTROL_PACKET_LEADER_BYTE   0x69
 
#define PACKET_TRAILING_BYTE   0xAA
 
#define PACKET_TYPE_UNUSED   0
 
#define PACKET_TYPE_KD_STATE_CHANGE32   1
 
#define PACKET_TYPE_KD_STATE_MANIPULATE   2
 
#define PACKET_TYPE_KD_DEBUG_IO   3
 
#define PACKET_TYPE_KD_ACKNOWLEDGE   4
 
#define PACKET_TYPE_KD_RESEND   5
 
#define PACKET_TYPE_KD_RESET   6
 
#define PACKET_TYPE_KD_STATE_CHANGE64   7
 
#define PACKET_TYPE_KD_POLL_BREAKIN   8
 
#define PACKET_TYPE_KD_TRACE_IO   9
 
#define PACKET_TYPE_KD_CONTROL_REQUEST   10
 
#define PACKET_TYPE_KD_FILE_IO   11
 
#define PACKET_TYPE_MAX   12
 
#define DbgKdMinimumStateChange   0x00003030
 
#define DbgKdExceptionStateChange   0x00003030
 
#define DbgKdLoadSymbolsStateChange   0x00003031
 
#define DbgKdCommandStringStateChange   0x00003032
 
#define DbgKdMaximumStateChange   0x00003033
 
#define DbgKdAlternateStateChange   0x00010000
 
#define DbgKdMinimumManipulate   0x00003130
 
#define DbgKdReadVirtualMemoryApi   0x00003130
 
#define DbgKdWriteVirtualMemoryApi   0x00003131
 
#define DbgKdGetContextApi   0x00003132
 
#define DbgKdSetContextApi   0x00003133
 
#define DbgKdWriteBreakPointApi   0x00003134
 
#define DbgKdRestoreBreakPointApi   0x00003135
 
#define DbgKdContinueApi   0x00003136
 
#define DbgKdReadControlSpaceApi   0x00003137
 
#define DbgKdWriteControlSpaceApi   0x00003138
 
#define DbgKdReadIoSpaceApi   0x00003139
 
#define DbgKdWriteIoSpaceApi   0x0000313A
 
#define DbgKdRebootApi   0x0000313B
 
#define DbgKdContinueApi2   0x0000313C
 
#define DbgKdReadPhysicalMemoryApi   0x0000313D
 
#define DbgKdWritePhysicalMemoryApi   0x0000313E
 
#define DbgKdQuerySpecialCallsApi   0x0000313F
 
#define DbgKdSetSpecialCallApi   0x00003140
 
#define DbgKdClearSpecialCallsApi   0x00003141
 
#define DbgKdSetInternalBreakPointApi   0x00003142
 
#define DbgKdGetInternalBreakPointApi   0x00003143
 
#define DbgKdReadIoSpaceExtendedApi   0x00003144
 
#define DbgKdWriteIoSpaceExtendedApi   0x00003145
 
#define DbgKdGetVersionApi   0x00003146
 
#define DbgKdWriteBreakPointExApi   0x00003147
 
#define DbgKdRestoreBreakPointExApi   0x00003148
 
#define DbgKdCauseBugCheckApi   0x00003149
 
#define DbgKdSwitchProcessor   0x00003150
 
#define DbgKdPageInApi   0x00003151
 
#define DbgKdReadMachineSpecificRegister   0x00003152
 
#define DbgKdWriteMachineSpecificRegister   0x00003153
 
#define OldVlm1   0x00003154
 
#define OldVlm2   0x00003155
 
#define DbgKdSearchMemoryApi   0x00003156
 
#define DbgKdGetBusDataApi   0x00003157
 
#define DbgKdSetBusDataApi   0x00003158
 
#define DbgKdCheckLowMemoryApi   0x00003159
 
#define DbgKdClearAllInternalBreakpointsApi   0x0000315A
 
#define DbgKdFillMemoryApi   0x0000315B
 
#define DbgKdQueryMemoryApi   0x0000315C
 
#define DbgKdSwitchPartition   0x0000315D
 
#define DbgKdWriteCustomBreakpointApi   0x0000315E
 
#define DbgKdGetContextExApi   0x0000315F
 
#define DbgKdSetContextExApi   0x00003160
 
#define DbgKdMaximumManipulate   0x00003161
 
#define DbgKdPrintStringApi   0x00003230
 
#define DbgKdGetStringApi   0x00003231
 
#define DbgKdPrintTraceApi   0x00003330
 
#define DbgKdRequestHardwareBp   0x00004300
 
#define DbgKdReleaseHardwareBp   0x00004301
 
#define DbgKdCreateFileApi   0x00003430
 
#define DbgKdReadFileApi   0x00003431
 
#define DbgKdWriteFileApi   0x00003432
 
#define DbgKdCloseFileApi   0x00003433
 
#define REPORT_INCLUDES_SEGS   0x0001
 
#define REPORT_STANDARD_CS   0x0002
 
#define DBGKD_64BIT_PROTOCOL_VERSION1   5
 
#define DBGKD_64BIT_PROTOCOL_VERSION2   6
 
#define DBGKD_QUERY_MEMORY_VIRTUAL   0
 
#define DBGKD_QUERY_MEMORY_PROCESS   0
 
#define DBGKD_QUERY_MEMORY_SESSION   1
 
#define DBGKD_QUERY_MEMORY_KERNEL   2
 
#define DBGKD_QUERY_MEMORY_READ   0x01
 
#define DBGKD_QUERY_MEMORY_WRITE   0x02
 
#define DBGKD_QUERY_MEMORY_EXECUTE   0x04
 
#define DBGKD_QUERY_MEMORY_FIXED   0x08
 
#define DBGKD_INTERNAL_BP_FLAG_COUNTONLY   0x01
 
#define DBGKD_INTERNAL_BP_FLAG_INVALID   0x02
 
#define DBGKD_INTERNAL_BP_FLAG_SUSPENDED   0x04
 
#define DBGKD_INTERNAL_BP_FLAG_DYING   0x08
 
#define DBGKD_FILL_MEMORY_VIRTUAL   0x01
 
#define DBGKD_FILL_MEMORY_PHYSICAL   0x02
 
#define DBGKD_CACHING_DEFAULT   0
 
#define DBGKD_CACHING_CACHED   1
 
#define DBGKD_CACHING_UNCACHED   2
 
#define DBGKD_CACHING_WRITE_COMBINED   3
 
#define DBGKD_PARTITION_DEFAULT   0x00
 
#define DBGKD_PARTITION_ALTERNATE   0x01
 
#define AMD64_DEBUG_CONTROL_SPACE_KPCR   0
 
#define AMD64_DEBUG_CONTROL_SPACE_KPRCB   1
 
#define AMD64_DEBUG_CONTROL_SPACE_KSPECIAL   2
 
#define AMD64_DEBUG_CONTROL_SPACE_KTHREAD   3
 

Typedefs

typedef struct _KD_PACKET KD_PACKET
 
typedef struct _KD_PACKETPKD_PACKET
 
typedef struct _KD_CONTEXT KD_CONTEXT
 
typedef struct _KD_CONTEXTPKD_CONTEXT
 
typedef struct
_X86_DBGKD_CONTROL_SET 
X86_DBGKD_CONTROL_SET
 
typedef struct
_X86_DBGKD_CONTROL_SET
PX86_DBGKD_CONTROL_SET
 
typedef struct
_ALPHA_DBGKD_CONTROL_SET 
ALPHA_DBGKD_CONTROL_SET
 
typedef struct
_ALPHA_DBGKD_CONTROL_SET
PALPHA_DBGKD_CONTROL_SET
 
typedef struct
_IA64_DBGKD_CONTROL_SET 
IA64_DBGKD_CONTROL_SET
 
typedef struct
_IA64_DBGKD_CONTROL_SET
PIA64_DBGKD_CONTROL_SET
 
typedef struct
_AMD64_DBGKD_CONTROL_SET 
AMD64_DBGKD_CONTROL_SET
 
typedef struct
_AMD64_DBGKD_CONTROL_SET
PAMD64_DBGKD_CONTROL_SET
 
typedef struct
_ARM_DBGKD_CONTROL_SET 
ARM_DBGKD_CONTROL_SET
 
typedef struct
_ARM_DBGKD_CONTROL_SET
PARM_DBGKD_CONTROL_SET
 
typedef struct
_DBGKD_ANY_CONTROL_SET 
DBGKD_ANY_CONTROL_SET
 
typedef struct
_DBGKD_ANY_CONTROL_SET
PDBGKD_ANY_CONTROL_SET
 
typedef struct _DBGKM_EXCEPTION32 DBGKM_EXCEPTION32
 
typedef struct _DBGKM_EXCEPTION32PDBGKM_EXCEPTION32
 
typedef struct _DBGKM_EXCEPTION64 DBGKM_EXCEPTION64
 
typedef struct _DBGKM_EXCEPTION64PDBGKM_EXCEPTION64
 
typedef struct
_X86_DBGKD_CONTROL_REPORT 
X86_DBGKD_CONTROL_REPORT
 
typedef struct
_X86_DBGKD_CONTROL_REPORT
PX86_DBGKD_CONTROL_REPORT
 
typedef struct
_ALPHA_DBGKD_CONTROL_REPORT 
ALPHA_DBGKD_CONTROL_REPORT
 
typedef struct
_ALPHA_DBGKD_CONTROL_REPORT
PALPHA_DBGKD_CONTROL_REPORT
 
typedef struct
_IA64_DBGKD_CONTROL_REPORT 
IA64_DBGKD_CONTROL_REPORT
 
typedef struct
_IA64_DBGKD_CONTROL_REPORT
PIA64_DBGKD_CONTROL_REPORT
 
typedef struct
_AMD64_DBGKD_CONTROL_REPORT 
AMD64_DBGKD_CONTROL_REPORT
 
typedef struct
_AMD64_DBGKD_CONTROL_REPORT
PAMD64_DBGKD_CONTROL_REPORT
 
typedef struct
_ARM_DBGKD_CONTROL_REPORT 
ARM_DBGKD_CONTROL_REPORT
 
typedef struct
_ARM_DBGKD_CONTROL_REPORT
PARM_DBGKD_CONTROL_REPORT
 
typedef struct
_DBGKD_ANY_CONTROL_REPORT 
DBGKD_ANY_CONTROL_REPORT
 
typedef struct
_DBGKD_ANY_CONTROL_REPORT
PDBGKD_ANY_CONTROL_REPORT
 
typedef struct _DBGKD_PRINT_STRING DBGKD_PRINT_STRING
 
typedef struct
_DBGKD_PRINT_STRING
PDBGKD_PRINT_STRING
 
typedef struct _DBGKD_GET_STRING DBGKD_GET_STRING
 
typedef struct _DBGKD_GET_STRINGPDBGKD_GET_STRING
 
typedef struct _DBGKD_DEBUG_IO DBGKD_DEBUG_IO
 
typedef struct _DBGKD_DEBUG_IOPDBGKD_DEBUG_IO
 
typedef struct
_DBGKD_COMMAND_STRING 
DBGKD_COMMAND_STRING
 
typedef struct
_DBGKD_COMMAND_STRING
PDBGKD_COMMAND_STRING
 
typedef struct
_DBGKD_LOAD_SYMBOLS32 
DBGKD_LOAD_SYMBOLS32
 
typedef struct
_DBGKD_LOAD_SYMBOLS32
PDBGKD_LOAD_SYMBOLS32
 
typedef struct
_DBGKD_LOAD_SYMBOLS64 
DBGKD_LOAD_SYMBOLS64
 
typedef struct
_DBGKD_LOAD_SYMBOLS64
PDBGKD_LOAD_SYMBOLS64
 
typedef struct
_DBGKD_WAIT_STATE_CHANGE32 
DBGKD_WAIT_STATE_CHANGE32
 
typedef struct
_DBGKD_WAIT_STATE_CHANGE32
PDBGKD_WAIT_STATE_CHANGE32
 
typedef struct
_DBGKD_WAIT_STATE_CHANGE64 
DBGKD_WAIT_STATE_CHANGE64
 
typedef struct
_DBGKD_WAIT_STATE_CHANGE64
PDBGKD_WAIT_STATE_CHANGE64
 
typedef struct
_DBGKD_ANY_WAIT_STATE_CHANGE 
DBGKD_ANY_WAIT_STATE_CHANGE
 
typedef struct
_DBGKD_ANY_WAIT_STATE_CHANGE
PDBGKD_ANY_WAIT_STATE_CHANGE
 
typedef struct _DBGKD_READ_MEMORY32 DBGKD_READ_MEMORY32
 
typedef struct
_DBGKD_READ_MEMORY32
PDBGKD_READ_MEMORY32
 
typedef struct _DBGKD_READ_MEMORY64 DBGKD_READ_MEMORY64
 
typedef struct
_DBGKD_READ_MEMORY64
PDBGKD_READ_MEMORY64
 
typedef struct
_DBGKD_WRITE_MEMORY32 
DBGKD_WRITE_MEMORY32
 
typedef struct
_DBGKD_WRITE_MEMORY32
PDBGKD_WRITE_MEMORY32
 
typedef struct
_DBGKD_WRITE_MEMORY64 
DBGKD_WRITE_MEMORY64
 
typedef struct
_DBGKD_WRITE_MEMORY64
PDBGKD_WRITE_MEMORY64
 
typedef struct _DBGKD_GET_CONTEXT DBGKD_GET_CONTEXT
 
typedef struct _DBGKD_GET_CONTEXTPDBGKD_GET_CONTEXT
 
typedef struct _DBGKD_SET_CONTEXT DBGKD_SET_CONTEXT
 
typedef struct _DBGKD_SET_CONTEXTPDBGKD_SET_CONTEXT
 
typedef struct
_DBGKD_WRITE_BREAKPOINT32 
DBGKD_WRITE_BREAKPOINT32
 
typedef struct
_DBGKD_WRITE_BREAKPOINT32
PDBGKD_WRITE_BREAKPOINT32
 
typedef struct
_DBGKD_WRITE_BREAKPOINT64 
DBGKD_WRITE_BREAKPOINT64
 
typedef struct
_DBGKD_WRITE_BREAKPOINT64
PDBGKD_WRITE_BREAKPOINT64
 
typedef struct
_DBGKD_RESTORE_BREAKPOINT 
DBGKD_RESTORE_BREAKPOINT
 
typedef struct
_DBGKD_RESTORE_BREAKPOINT
PDBGKD_RESTORE_BREAKPOINT
 
typedef struct _DBGKD_CONTINUE DBGKD_CONTINUE
 
typedef struct _DBGKD_CONTINUEPDBGKD_CONTINUE
 
typedef struct _DBGKD_CONTINUE2 DBGKD_CONTINUE2
 
typedef struct _DBGKD_CONTINUE2PDBGKD_CONTINUE2
 
typedef struct
_DBGKD_READ_WRITE_IO32 
DBGKD_READ_WRITE_IO32
 
typedef struct
_DBGKD_READ_WRITE_IO32
PDBGKD_READ_WRITE_IO32
 
typedef struct
_DBGKD_READ_WRITE_IO64 
DBGKD_READ_WRITE_IO64
 
typedef struct
_DBGKD_READ_WRITE_IO64
PDBGKD_READ_WRITE_IO64
 
typedef struct
_DBGKD_READ_WRITE_IO_EXTENDED32 
DBGKD_READ_WRITE_IO_EXTENDED32
 
typedef struct
_DBGKD_READ_WRITE_IO_EXTENDED32
PDBGKD_READ_WRITE_IO_EXTENDED32
 
typedef struct
_DBGKD_READ_WRITE_IO_EXTENDED64 
DBGKD_READ_WRITE_IO_EXTENDED64
 
typedef struct
_DBGKD_READ_WRITE_IO_EXTENDED64
PDBGKD_READ_WRITE_IO_EXTENDED64
 
typedef struct
_DBGKD_READ_WRITE_MSR 
DBGKD_READ_WRITE_MSR
 
typedef struct
_DBGKD_READ_WRITE_MSR
PDBGKD_READ_WRITE_MSR
 
typedef struct
_DBGKD_QUERY_SPECIAL_CALLS 
DBGKD_QUERY_SPECIAL_CALLS
 
typedef struct
_DBGKD_QUERY_SPECIAL_CALLS
PDBGKD_QUERY_SPECIAL_CALLS
 
typedef struct
_DBGKD_SET_SPECIAL_CALL32 
DBGKD_SET_SPECIAL_CALL32
 
typedef struct
_DBGKD_SET_SPECIAL_CALL32
PDBGKD_SET_SPECIAL_CALL32
 
typedef struct
_DBGKD_SET_SPECIAL_CALL64 
DBGKD_SET_SPECIAL_CALL64
 
typedef struct
_DBGKD_SET_SPECIAL_CALL64
PDBGKD_SET_SPECIAL_CALL64
 
typedef struct
_DBGKD_SET_INTERNAL_BREAKPOINT32 
DBGKD_SET_INTERNAL_BREAKPOINT32
 
typedef struct
_DBGKD_SET_INTERNAL_BREAKPOINT32
PDBGKD_SET_INTERNAL_BREAKPOINT32
 
typedef struct
_DBGKD_SET_INTERNAL_BREAKPOINT64 
DBGKD_SET_INTERNAL_BREAKPOINT64
 
typedef struct
_DBGKD_SET_INTERNAL_BREAKPOINT64
PDBGKD_SET_INTERNAL_BREAKPOINT64
 
typedef struct
_DBGKD_GET_INTERNAL_BREAKPOINT32 
DBGKD_GET_INTERNAL_BREAKPOINT32
 
typedef struct
_DBGKD_GET_INTERNAL_BREAKPOINT32
PDBGKD_GET_INTERNAL_BREAKPOINT32
 
typedef struct
_DBGKD_GET_INTERNAL_BREAKPOINT64 
DBGKD_GET_INTERNAL_BREAKPOINT64
 
typedef struct
_DBGKD_GET_INTERNAL_BREAKPOINT64
PDBGKD_GET_INTERNAL_BREAKPOINT64
 
typedef struct _DBGKD_BREAKPOINTEX DBGKD_BREAKPOINTEX
 
typedef struct
_DBGKD_BREAKPOINTEX
PDBGKD_BREAKPOINTEX
 
typedef struct _DBGKD_SEARCH_MEMORY DBGKD_SEARCH_MEMORY
 
typedef struct
_DBGKD_SEARCH_MEMORY
PDBGKD_SEARCH_MEMORY
 
typedef struct
_DBGKD_GET_SET_BUS_DATA 
DBGKD_GET_SET_BUS_DATA
 
typedef struct
_DBGKD_GET_SET_BUS_DATA
PDBGKD_GET_SET_BUS_DATA
 
typedef struct _DBGKD_FILL_MEMORY DBGKD_FILL_MEMORY
 
typedef struct _DBGKD_FILL_MEMORYPDBGKD_FILL_MEMORY
 
typedef struct _DBGKD_QUERY_MEMORY DBGKD_QUERY_MEMORY
 
typedef struct
_DBGKD_QUERY_MEMORY
PDBGKD_QUERY_MEMORY
 
typedef struct
_DBGKD_SWITCH_PARTITION 
DBGKD_SWITCH_PARTITION
 
typedef struct _DBGKD_CONTEXT_EX DBGKD_CONTEXT_EX
 
typedef struct _DBGKD_CONTEXT_EXPDBGKD_CONTEXT_EX
 
typedef struct
_DBGKD_WRITE_CUSTOM_BREAKPOINT 
DBGKD_WRITE_CUSTOM_BREAKPOINT
 
typedef struct
_DBGKD_WRITE_CUSTOM_BREAKPOINT
PDBGKD_WRITE_CUSTOM_BREAKPOINT
 
typedef struct
_DBGKD_MANIPULATE_STATE32 
DBGKD_MANIPULATE_STATE32
 
typedef struct
_DBGKD_MANIPULATE_STATE32
PDBGKD_MANIPULATE_STATE32
 
typedef struct
_DBGKD_MANIPULATE_STATE64 
DBGKD_MANIPULATE_STATE64
 
typedef struct
_DBGKD_MANIPULATE_STATE64
PDBGKD_MANIPULATE_STATE64
 
typedef struct _DBGKD_CREATE_FILE DBGKD_CREATE_FILE
 
typedef struct _DBGKD_CREATE_FILEPDBGKD_CREATE_FILE
 
typedef struct _DBGKD_READ_FILE DBGKD_READ_FILE
 
typedef struct _DBGKD_READ_FILEPDBGKD_READ_FILE
 
typedef struct _DBGKD_WRITE_FILE DBGKD_WRITE_FILE
 
typedef struct _DBGKD_WRITE_FILEPDBGKD_WRITE_FILE
 
typedef struct _DBGKD_CLOSE_FILE DBGKD_CLOSE_FILE
 
typedef struct _DBGKD_CLOSE_FILEPDBGKD_CLOSE_FILE
 
typedef struct _DBGKD_FILE_IO DBGKD_FILE_IO
 
typedef struct _DBGKD_FILE_IOPDBGKD_FILE_IO
 
typedef struct
_DBGKD_REQUEST_BREAKPOINT 
DBGKD_REQUEST_BREAKPOINT
 
typedef struct
_DBGKD_REQUEST_BREAKPOINT
PDBGKD_REQUEST_BREAKPOINT
 
typedef struct
_DBGKD_RELEASE_BREAKPOINT 
DBGKD_RELEASE_BREAKPOINT
 
typedef struct
_DBGKD_RELEASE_BREAKPOINT
PDBGKD_RELEASE_BREAKPOINT
 
typedef struct
_DBGKD_CONTROL_REQUEST 
DBGKD_CONTROL_REQUEST
 
typedef struct
_DBGKD_CONTROL_REQUEST
PDBGKD_CONTROL_REQUEST
 
typedef struct _DBGKD_PRINT_TRACE DBGKD_PRINT_TRACE
 
typedef struct _DBGKD_PRINT_TRACEPDBGKD_PRINT_TRACE
 
typedef struct _DBGKD_TRACE_IO DBGKD_TRACE_IO
 
typedef struct _DBGKD_TRACE_IOPDBGKD_TRACE_IO
 

Functions

static __inline VOID NTAPI ExceptionRecord32To64 (IN PEXCEPTION_RECORD32 Ex32, OUT PEXCEPTION_RECORD64 Ex64)
 

Macro Definition Documentation

#define AMD64_DEBUG_CONTROL_SPACE_KPCR   0

Definition at line 203 of file windbgkd.h.

Referenced by KdpSysReadControlSpace().

#define AMD64_DEBUG_CONTROL_SPACE_KPRCB   1

Definition at line 204 of file windbgkd.h.

Referenced by KdpSysReadControlSpace().

#define AMD64_DEBUG_CONTROL_SPACE_KSPECIAL   2

Definition at line 205 of file windbgkd.h.

Referenced by KdpSysReadControlSpace(), and KdpSysWriteControlSpace().

#define AMD64_DEBUG_CONTROL_SPACE_KTHREAD   3

Definition at line 206 of file windbgkd.h.

Referenced by KdpSysReadControlSpace().

#define BREAKIN_PACKET   0x62626262

Definition at line 30 of file windbgkd.h.

#define BREAKIN_PACKET_BYTE   0x62

Definition at line 31 of file windbgkd.h.

Referenced by KdpPollBreakIn(), and KdpReceivePacketLeader().

#define CONTROL_PACKET_LEADER   0x69696969

Definition at line 34 of file windbgkd.h.

Referenced by KdpSendControlPacket(), and KdReceivePacket().

#define CONTROL_PACKET_LEADER_BYTE   0x69

Definition at line 35 of file windbgkd.h.

Referenced by KdpReceivePacketLeader().

#define COPYSE (   p64,
  p32,
  f 
)    p64->f = (ULONG64)(LONG64)(LONG)p32->f

Definition at line 12 of file windbgkd.h.

Referenced by ExceptionRecord32To64().

#define DBGKD_64BIT_PROTOCOL_VERSION1   5

Definition at line 153 of file windbgkd.h.

#define DBGKD_64BIT_PROTOCOL_VERSION2   6

Definition at line 154 of file windbgkd.h.

#define DBGKD_CACHING_CACHED   1

Definition at line 190 of file windbgkd.h.

Referenced by KdpReadPhysicalmemory(), and KdpWritePhysicalmemory().

#define DBGKD_CACHING_DEFAULT   0

Definition at line 189 of file windbgkd.h.

#define DBGKD_CACHING_UNCACHED   2

Definition at line 191 of file windbgkd.h.

Referenced by KdpReadPhysicalmemory(), and KdpWritePhysicalmemory().

#define DBGKD_CACHING_WRITE_COMBINED   3

Definition at line 192 of file windbgkd.h.

Referenced by KdpReadPhysicalmemory(), and KdpWritePhysicalmemory().

#define DBGKD_FILL_MEMORY_PHYSICAL   0x02

Definition at line 184 of file windbgkd.h.

#define DBGKD_FILL_MEMORY_VIRTUAL   0x01

Definition at line 183 of file windbgkd.h.

#define DBGKD_INTERNAL_BP_FLAG_COUNTONLY   0x01

Definition at line 175 of file windbgkd.h.

#define DBGKD_INTERNAL_BP_FLAG_DYING   0x08

Definition at line 178 of file windbgkd.h.

#define DBGKD_INTERNAL_BP_FLAG_INVALID   0x02

Definition at line 176 of file windbgkd.h.

#define DBGKD_INTERNAL_BP_FLAG_SUSPENDED   0x04

Definition at line 177 of file windbgkd.h.

#define DBGKD_MAXSTREAM   16

Definition at line 19 of file windbgkd.h.

Referenced by KdpSetCommonState().

#define DBGKD_PARTITION_ALTERNATE   0x01

Definition at line 198 of file windbgkd.h.

#define DBGKD_PARTITION_DEFAULT   0x00

Definition at line 197 of file windbgkd.h.

#define DBGKD_QUERY_MEMORY_EXECUTE   0x04

Definition at line 169 of file windbgkd.h.

Referenced by KdpQueryMemory().

#define DBGKD_QUERY_MEMORY_FIXED   0x08

Definition at line 170 of file windbgkd.h.

#define DBGKD_QUERY_MEMORY_KERNEL   2

Definition at line 162 of file windbgkd.h.

Referenced by KdpQueryMemory().

#define DBGKD_QUERY_MEMORY_PROCESS   0

Definition at line 160 of file windbgkd.h.

Referenced by KdpQueryMemory().

#define DBGKD_QUERY_MEMORY_READ   0x01

Definition at line 167 of file windbgkd.h.

Referenced by KdpQueryMemory().

#define DBGKD_QUERY_MEMORY_SESSION   1

Definition at line 161 of file windbgkd.h.

Referenced by KdpQueryMemory().

#define DBGKD_QUERY_MEMORY_VIRTUAL   0

Definition at line 159 of file windbgkd.h.

Referenced by KdpQueryMemory().

#define DBGKD_QUERY_MEMORY_WRITE   0x02

Definition at line 168 of file windbgkd.h.

Referenced by KdpQueryMemory().

#define DbgKdAlternateStateChange   0x00010000

Definition at line 68 of file windbgkd.h.

#define DbgKdCauseBugCheckApi   0x00003149

Definition at line 99 of file windbgkd.h.

Referenced by KdpSendWaitContinue().

#define DbgKdCheckLowMemoryApi   0x00003159

Definition at line 109 of file windbgkd.h.

Referenced by KdpSendWaitContinue().

#define DbgKdClearAllInternalBreakpointsApi   0x0000315A

Definition at line 110 of file windbgkd.h.

Referenced by KdpSendWaitContinue().

#define DbgKdClearSpecialCallsApi   0x00003141

Definition at line 91 of file windbgkd.h.

Referenced by KdpSendWaitContinue().

#define DbgKdCloseFileApi   0x00003433

Definition at line 142 of file windbgkd.h.

#define DbgKdCommandStringStateChange   0x00003032

Definition at line 61 of file windbgkd.h.

Referenced by KdpReportCommandStringStateChange().

#define DbgKdContinueApi   0x00003136

Definition at line 80 of file windbgkd.h.

Referenced by ContinueManipulateStateHandler(), and KdpSendWaitContinue().

#define DbgKdContinueApi2   0x0000313C

Definition at line 86 of file windbgkd.h.

Referenced by KdpSendWaitContinue().

#define DbgKdCreateFileApi   0x00003430

Definition at line 139 of file windbgkd.h.

Referenced by KdSendPacket().

#define DbgKdExceptionStateChange   0x00003030
#define DbgKdFillMemoryApi   0x0000315B

Definition at line 111 of file windbgkd.h.

Referenced by KdpSendWaitContinue().

#define DbgKdGetBusDataApi   0x00003157

Definition at line 107 of file windbgkd.h.

Referenced by KdpSendWaitContinue().

#define DbgKdGetContextApi   0x00003132
#define DbgKdGetContextExApi   0x0000315F

Definition at line 115 of file windbgkd.h.

Referenced by KdpSendWaitContinue().

#define DbgKdGetInternalBreakPointApi   0x00003143

Definition at line 93 of file windbgkd.h.

Referenced by KdpSendWaitContinue().

#define DbgKdGetStringApi   0x00003231

Definition at line 123 of file windbgkd.h.

Referenced by KdpPromptString(), and send_kd_debug_io().

#define DbgKdGetVersionApi   0x00003146
#define DbgKdLoadSymbolsStateChange   0x00003031
#define DbgKdMaximumManipulate   0x00003161

Definition at line 117 of file windbgkd.h.

Referenced by KdInitSystem().

#define DbgKdMaximumStateChange   0x00003033

Definition at line 62 of file windbgkd.h.

Referenced by KdInitSystem().

#define DbgKdMinimumManipulate   0x00003130

Definition at line 73 of file windbgkd.h.

Referenced by KdInitSystem().

#define DbgKdMinimumStateChange   0x00003030

Definition at line 58 of file windbgkd.h.

Referenced by KdInitSystem().

#define DbgKdPageInApi   0x00003151

Definition at line 101 of file windbgkd.h.

Referenced by KdpSendWaitContinue().

#define DbgKdPrintStringApi   0x00003230

Definition at line 122 of file windbgkd.h.

Referenced by KdpPrintString(), KdSendPacket(), and send_kd_debug_io().

#define DbgKdPrintTraceApi   0x00003330

Definition at line 128 of file windbgkd.h.

#define DbgKdQueryMemoryApi   0x0000315C

Definition at line 112 of file windbgkd.h.

Referenced by KdpSendWaitContinue().

#define DbgKdQuerySpecialCallsApi   0x0000313F

Definition at line 89 of file windbgkd.h.

Referenced by KdpSendWaitContinue().

#define DbgKdReadControlSpaceApi   0x00003137

Definition at line 81 of file windbgkd.h.

Referenced by KdpSendWaitContinue().

#define DbgKdReadFileApi   0x00003431

Definition at line 140 of file windbgkd.h.

#define DbgKdReadIoSpaceApi   0x00003139

Definition at line 83 of file windbgkd.h.

Referenced by KdpSendWaitContinue().

#define DbgKdReadIoSpaceExtendedApi   0x00003144

Definition at line 94 of file windbgkd.h.

Referenced by KdpSendWaitContinue().

#define DbgKdReadMachineSpecificRegister   0x00003152

Definition at line 102 of file windbgkd.h.

Referenced by KdpSendWaitContinue().

#define DbgKdReadPhysicalMemoryApi   0x0000313D

Definition at line 87 of file windbgkd.h.

Referenced by KdpSendWaitContinue().

#define DbgKdReadVirtualMemoryApi   0x00003130

Definition at line 74 of file windbgkd.h.

Referenced by handle_gdb_read_mem(), KdpSendWaitContinue(), and ReadMemorySendHandler().

#define DbgKdRebootApi   0x0000313B

Definition at line 85 of file windbgkd.h.

Referenced by KdpSendWaitContinue().

#define DbgKdReleaseHardwareBp   0x00004301

Definition at line 134 of file windbgkd.h.

#define DbgKdRequestHardwareBp   0x00004300

Definition at line 133 of file windbgkd.h.

#define DbgKdRestoreBreakPointApi   0x00003135
#define DbgKdRestoreBreakPointExApi   0x00003148

Definition at line 98 of file windbgkd.h.

Referenced by KdpSendWaitContinue().

#define DbgKdSearchMemoryApi   0x00003156

Definition at line 106 of file windbgkd.h.

Referenced by KdpSendWaitContinue().

#define DbgKdSetBusDataApi   0x00003158

Definition at line 108 of file windbgkd.h.

Referenced by KdpSendWaitContinue().

#define DbgKdSetContextApi   0x00003133
#define DbgKdSetContextExApi   0x00003160

Definition at line 116 of file windbgkd.h.

Referenced by KdpSendWaitContinue().

#define DbgKdSetInternalBreakPointApi   0x00003142

Definition at line 92 of file windbgkd.h.

Referenced by KdpSendWaitContinue().

#define DbgKdSetSpecialCallApi   0x00003140

Definition at line 90 of file windbgkd.h.

Referenced by KdpSendWaitContinue().

#define DbgKdSwitchPartition   0x0000315D

Definition at line 113 of file windbgkd.h.

Referenced by KdpSendWaitContinue().

#define DbgKdSwitchProcessor   0x00003150

Definition at line 100 of file windbgkd.h.

Referenced by KdpSendWaitContinue().

#define DbgKdWriteBreakPointApi   0x00003134
#define DbgKdWriteBreakPointExApi   0x00003147

Definition at line 97 of file windbgkd.h.

Referenced by KdpSendWaitContinue().

#define DbgKdWriteControlSpaceApi   0x00003138

Definition at line 82 of file windbgkd.h.

Referenced by KdpSendWaitContinue().

#define DbgKdWriteCustomBreakpointApi   0x0000315E

Definition at line 114 of file windbgkd.h.

Referenced by KdpSendWaitContinue().

#define DbgKdWriteFileApi   0x00003432

Definition at line 141 of file windbgkd.h.

#define DbgKdWriteIoSpaceApi   0x0000313A

Definition at line 84 of file windbgkd.h.

Referenced by KdpSendWaitContinue().

#define DbgKdWriteIoSpaceExtendedApi   0x00003145

Definition at line 95 of file windbgkd.h.

Referenced by KdpSendWaitContinue().

#define DbgKdWriteMachineSpecificRegister   0x00003153

Definition at line 103 of file windbgkd.h.

Referenced by KdpSendWaitContinue().

#define DbgKdWritePhysicalMemoryApi   0x0000313E

Definition at line 88 of file windbgkd.h.

Referenced by KdpSendWaitContinue().

#define DbgKdWriteVirtualMemoryApi   0x00003131

Definition at line 75 of file windbgkd.h.

Referenced by handle_gdb_write_mem(), KdpSendWaitContinue(), and WriteMemorySendHandler().

#define INITIAL_PACKET_ID   0x80800000

Definition at line 24 of file windbgkd.h.

Referenced by KdReceivePacket(), and KdSendPacket().

#define OldVlm1   0x00003154

Definition at line 104 of file windbgkd.h.

#define OldVlm2   0x00003155

Definition at line 105 of file windbgkd.h.

#define PACKET_LEADER   0x30303030

Definition at line 32 of file windbgkd.h.

Referenced by KdSendPacket().

#define PACKET_LEADER_BYTE   0x30

Definition at line 33 of file windbgkd.h.

Referenced by KdpReceivePacketLeader().

#define PACKET_TRAILING_BYTE   0xAA

Definition at line 36 of file windbgkd.h.

Referenced by KdReceivePacket(), and KdSendPacket().

#define PACKET_TYPE_KD_ACKNOWLEDGE   4

Definition at line 45 of file windbgkd.h.

Referenced by KdReceivePacket(), and KdSendPacket().

#define PACKET_TYPE_KD_CONTROL_REQUEST   10

Definition at line 51 of file windbgkd.h.

#define PACKET_TYPE_KD_DEBUG_IO   3
#define PACKET_TYPE_KD_FILE_IO   11

Definition at line 52 of file windbgkd.h.

Referenced by KdSendPacket().

#define PACKET_TYPE_KD_POLL_BREAKIN   8

Definition at line 49 of file windbgkd.h.

Referenced by KdPollBreakIn(), KdpPollBreakInWithPortLock(), and KdReceivePacket().

#define PACKET_TYPE_KD_RESEND   5

Definition at line 46 of file windbgkd.h.

Referenced by KdReceivePacket().

#define PACKET_TYPE_KD_RESET   6

Definition at line 47 of file windbgkd.h.

Referenced by KdReceivePacket().

#define PACKET_TYPE_KD_STATE_CHANGE32   1

Definition at line 42 of file windbgkd.h.

Referenced by KdSendPacket().

#define PACKET_TYPE_KD_TRACE_IO   9

Definition at line 50 of file windbgkd.h.

#define PACKET_TYPE_MAX   12

Definition at line 53 of file windbgkd.h.

#define PACKET_TYPE_UNUSED   0

Definition at line 41 of file windbgkd.h.

#define REPORT_INCLUDES_SEGS   0x0001

Definition at line 147 of file windbgkd.h.

Referenced by KdpSetContextState().

#define REPORT_STANDARD_CS   0x0002

Definition at line 148 of file windbgkd.h.

Referenced by KdpSetContextState().

#define SYNC_PACKET_ID   0x00000800

Definition at line 25 of file windbgkd.h.

Referenced by KdReceivePacket(), and KdSendPacket().

Typedef Documentation

Function Documentation

static __inline VOID NTAPI ExceptionRecord32To64 ( IN PEXCEPTION_RECORD32  Ex32,
OUT PEXCEPTION_RECORD64  Ex64 
)
static

Definition at line 897 of file windbgkd.h.

Referenced by KdpReportExceptionStateChange().

899 {
900  ULONG i;
901 
902  Ex64->ExceptionCode = Ex32->ExceptionCode;
903  Ex64->ExceptionFlags = Ex32->ExceptionFlags;
904  Ex64->ExceptionRecord = Ex32->ExceptionRecord;
905  COPYSE(Ex64,Ex32,ExceptionAddress);
906  Ex64->NumberParameters = Ex32->NumberParameters;
907 
908  for (i = 0; i < EXCEPTION_MAXIMUM_PARAMETERS; i++)
909  {
910  COPYSE(Ex64,Ex32,ExceptionInformation[i]);
911  }
912 }
#define EXCEPTION_MAXIMUM_PARAMETERS
Definition: compat.h:194
GLenum GLclampf GLint i
Definition: glfuncs.h:14
#define COPYSE(p64, p32, f)
Definition: windbgkd.h:12
unsigned int ULONG
Definition: retypes.h:1