Welcome to mirror list, hosted at ThFree Co, Russian Federation.

Debug.h « Runtime « Native « src - github.com/mono/corert.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 481a607fea9c80dda0547e93094cac9ccd905b0e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

#pragma once

// The following definitions are required for interop with the VS Debugger
// Prior to making any changes to these, please reach out to the VS Debugger 
// team to make sure that your changes are not going to prevent the debugger
// from working.

enum FuncEvalEntryPointMode : uint32_t
{
    FixedAddress = 0,
    VirtualMethodSlotOnly = 1,
    InterfaceDispatch = 2,
};

enum FuncEvalMode : uint32_t
{
    CallParameterizedFunction = 1,
    NewStringWithLength = 2,
    NewParameterizedArray = 3,
    NewParameterizedObjectNoConstructor = 4,
    NewParameterizedObject = 5,
};

enum DebuggerGcProtectionRequestKind : uint16_t
{
    EnsureConservativeReporting = 1,
    RemoveConservativeReporting = 2,
    EnsureHandle = 3,
    RemoveHandle = 4
};

/**
 * This structure represents a request from the debugger to perform a GC protection related work.
 */
struct DebuggerGcProtectionRequest
{
    DebuggerGcProtectionRequestKind kind;
    union
    {
        uint16_t size;
        uint16_t type;
    };
    uint32_t identifier;
    uint64_t address;
    uint64_t payload; /* TODO, FuncEval, what would be a better name for this? */
};

enum DebuggerResponseKind : uint32_t
{
    FuncEvalCompleteWithReturn = 0,
    FuncEvalCompleteWithException = 1,
    FuncEvalParameterBufferReady = 2,
    RequestBufferReady = 3,
    ConservativeReportingBufferReady = 4,
    HandleReady = 5,
    FuncEvalCrossThreadDependency = 6,
};

struct DebuggerResponse
{
    DebuggerResponseKind kind;
};

struct DebuggerGcProtectionResponse
{
    DebuggerResponseKind kind;
    uint32_t padding;
    uint64_t bufferAddress;
};

struct DebuggerGcProtectionHandleReadyResponse
{
    DebuggerResponseKind kind;
    uint32_t padding;
    uint64_t payload;
    uint64_t handle;
};

struct DebuggerFuncEvalCompleteWithReturnResponse
{
    DebuggerResponseKind kind;
    uint32_t returnHandleIdentifier;
    uint64_t returnAddress;
};

struct DebuggerFuncEvalParameterBufferReadyResponse
{
    DebuggerResponseKind kind;
    uint32_t padding;
    uint64_t bufferAddress;
};

struct DebuggerFuncEvalCrossThreadDependencyNotification
{
    DebuggerResponseKind kind;
    uint32_t padding;
    uint64_t payload;
};