On 11/12/2017 14:25, Mihail Abakumov wrote:
> Added some definitions for new windbg.
>
> Signed-off-by: Mihail Abakumov
> Signed-off-by: Pavel Dovgalyuk
> Signed-off-by: Dmitriy Koltunov
> ---
> include/exec/windbgkd.h | 21 -
> 1 file changed, 20 insertions(+), 1 deletion(-)
>
> diff --git a/include/exec/windbgkd.h b/include/exec/windbgkd.h
> index 5008cbb729..aa2b4fdbd9 100755
> --- a/include/exec/windbgkd.h
> +++ b/include/exec/windbgkd.h
> @@ -112,7 +112,10 @@
> #define DbgKdFillMemoryApi 0x315b
> #define DbgKdQueryMemoryApi 0x315c
> #define DbgKdSwitchPartition0x315d
> -#define DbgKdMaximumManipulate 0x315e
> +#define DbgKdWriteCustomBreakpointApi 0x315e
> +#define DbgKdGetContextExApi0x315f
> +#define DbgKdSetContextExApi0x3160
> +#define DbgKdMaximumManipulate 0x3161
>
> /*
> * Debug I/O Types
> @@ -723,6 +726,20 @@ typedef struct _DBGKD_SWITCH_PARTITION {
> uint32_t Partition;
> } DBGKD_SWITCH_PARTITION;
>
> +typedef struct _DBGKD_CONTEXT_EX {
> + uint32_t Offset;
> + uint32_t ByteCount;
> + uint32_t BytesCopied;
> +} DBGKD_CONTEXT_EX, *PDBGKD_CONTEXT_EX;
> +
> +typedef struct _DBGKD_WRITE_CUSTOM_BREAKPOINT {
> + uint64_t BreakPointAddress;
> + uint64_t BreakPointInstruction;
> + uint32_t BreakPointHandle;
> + uint16_t BreakPointInstructionSize;
> + uint16_t BreakPointInstructionAlignment;
> +} DBGKD_WRITE_CUSTOM_BREAKPOINT, *PDBGKD_WRITE_CUSTOM_BREAKPOINT;
> +
> /*
> * DBGKD Structure for Manipulate
> */
> @@ -787,6 +804,8 @@ typedef struct _DBGKD_MANIPULATE_STATE64 {
> DBGKD_FILL_MEMORY FillMemory;
> DBGKD_QUERY_MEMORY QueryMemory;
> DBGKD_SWITCH_PARTITION SwitchPartition;
> +DBGKD_WRITE_CUSTOM_BREAKPOINT WriteCustomBreakpoint;
> +DBGKD_CONTEXT_EX ContextEx;
> } u;
> } DBGKD_MANIPULATE_STATE64, *PDBGKD_MANIPULATE_STATE64;
>
>
>
Please squash in patch 2 ("windbg: added windbg's KD header file")
Paolo