Update DAP protocol to 1.41.0
Update the script to include the DAP version in the file headers. Remove http file caching. Was never used.
This commit is contained in:
@@ -14,6 +14,8 @@
|
||||
|
||||
// Generated with protocol_gen.go -- do not edit this file.
|
||||
// go run scripts/protocol_gen/protocol_gen.go
|
||||
//
|
||||
// DAP version 1.41.0
|
||||
|
||||
#ifndef dap_protocol_h
|
||||
#define dap_protocol_h
|
||||
@@ -125,8 +127,8 @@ struct Source {
|
||||
|
||||
DAP_DECLARE_STRUCT_TYPEINFO(Source);
|
||||
|
||||
// Information about a Breakpoint created in setBreakpoints or
|
||||
// setFunctionBreakpoints.
|
||||
// Information about a Breakpoint created in setBreakpoints,
|
||||
// setFunctionBreakpoints, setInstructionBreakpoints, or setDataBreakpoints.
|
||||
struct Breakpoint {
|
||||
Breakpoint();
|
||||
~Breakpoint();
|
||||
@@ -142,12 +144,17 @@ struct Breakpoint {
|
||||
// An optional identifier for the breakpoint. It is needed if breakpoint
|
||||
// events are used to update or remove breakpoints.
|
||||
optional<integer> id;
|
||||
// An optional memory reference to where the breakpoint is set.
|
||||
optional<string> instructionReference;
|
||||
// The start line of the actual range covered by the breakpoint.
|
||||
optional<integer> line;
|
||||
// An optional message about the state of the breakpoint.
|
||||
// This is shown to the user and can be used to explain why a breakpoint could
|
||||
// not be verified.
|
||||
optional<string> message;
|
||||
// An optional offset from the instruction reference.
|
||||
// This can be negative.
|
||||
optional<integer> offset;
|
||||
// The source where the breakpoint is located.
|
||||
optional<Source> source;
|
||||
// If true breakpoint could be set (but not necessarily at the desired
|
||||
@@ -374,6 +381,9 @@ struct Capabilities {
|
||||
// The debug adapter supports breakpoints that break execution after a
|
||||
// specified number of hits.
|
||||
optional<boolean> supportsHitConditionalBreakpoints;
|
||||
// The debug adapter supports adding breakpoints based on instruction
|
||||
// references.
|
||||
optional<boolean> supportsInstructionBreakpoints;
|
||||
// The debug adapter supports the 'loadedSources' request.
|
||||
optional<boolean> supportsLoadedSourcesRequest;
|
||||
// The debug adapter supports logpoints by interpreting the 'logMessage'
|
||||
@@ -398,6 +408,9 @@ struct Capabilities {
|
||||
optional<boolean> supportsStepBack;
|
||||
// The debug adapter supports the 'stepInTargets' request.
|
||||
optional<boolean> supportsStepInTargetsRequest;
|
||||
// The debug adapter supports stepping granularities (argument 'granularity')
|
||||
// for the stepping requests.
|
||||
optional<boolean> supportsSteppingGranularity;
|
||||
// The debug adapter supports the 'terminate' request.
|
||||
optional<boolean> supportsTerminateRequest;
|
||||
// The debug adapter supports the 'terminateThreads' request.
|
||||
@@ -1094,6 +1107,9 @@ struct InitializeResponse : public Response {
|
||||
// The debug adapter supports breakpoints that break execution after a
|
||||
// specified number of hits.
|
||||
optional<boolean> supportsHitConditionalBreakpoints;
|
||||
// The debug adapter supports adding breakpoints based on instruction
|
||||
// references.
|
||||
optional<boolean> supportsInstructionBreakpoints;
|
||||
// The debug adapter supports the 'loadedSources' request.
|
||||
optional<boolean> supportsLoadedSourcesRequest;
|
||||
// The debug adapter supports logpoints by interpreting the 'logMessage'
|
||||
@@ -1118,6 +1134,9 @@ struct InitializeResponse : public Response {
|
||||
optional<boolean> supportsStepBack;
|
||||
// The debug adapter supports the 'stepInTargets' request.
|
||||
optional<boolean> supportsStepInTargetsRequest;
|
||||
// The debug adapter supports stepping granularities (argument 'granularity')
|
||||
// for the stepping requests.
|
||||
optional<boolean> supportsSteppingGranularity;
|
||||
// The debug adapter supports the 'terminate' request.
|
||||
optional<boolean> supportsTerminateRequest;
|
||||
// The debug adapter supports the 'terminateThreads' request.
|
||||
@@ -1376,6 +1395,15 @@ struct NextResponse : public Response {
|
||||
|
||||
DAP_DECLARE_STRUCT_TYPEINFO(NextResponse);
|
||||
|
||||
// The granularity of one 'step' in the stepping requests 'next', 'stepIn',
|
||||
// 'stepOut', and 'stepBack'.
|
||||
struct SteppingGranularity {
|
||||
SteppingGranularity();
|
||||
~SteppingGranularity();
|
||||
};
|
||||
|
||||
DAP_DECLARE_STRUCT_TYPEINFO(SteppingGranularity);
|
||||
|
||||
// The request starts the debuggee to run again for one step.
|
||||
// The debug adapter first sends the response and then a 'stopped' event (with
|
||||
// reason 'step') after the step has completed.
|
||||
@@ -1385,6 +1413,9 @@ struct NextRequest : public Request {
|
||||
NextRequest();
|
||||
~NextRequest();
|
||||
|
||||
// Optional granularity to step. If no granularity is specified, a granularity
|
||||
// of 'statement' is assumed.
|
||||
optional<SteppingGranularity> granularity;
|
||||
// Execute 'next' for this thread.
|
||||
integer threadId;
|
||||
};
|
||||
@@ -2063,6 +2094,61 @@ struct SetFunctionBreakpointsRequest : public Request {
|
||||
|
||||
DAP_DECLARE_STRUCT_TYPEINFO(SetFunctionBreakpointsRequest);
|
||||
|
||||
// Response to 'setInstructionBreakpoints' request
|
||||
struct SetInstructionBreakpointsResponse : public Response {
|
||||
SetInstructionBreakpointsResponse();
|
||||
~SetInstructionBreakpointsResponse();
|
||||
|
||||
// Information about the breakpoints. The array elements correspond to the
|
||||
// elements of the 'breakpoints' array.
|
||||
array<Breakpoint> breakpoints;
|
||||
};
|
||||
|
||||
DAP_DECLARE_STRUCT_TYPEINFO(SetInstructionBreakpointsResponse);
|
||||
|
||||
// Properties of a breakpoint passed to the setInstructionBreakpoints request
|
||||
struct InstructionBreakpoint {
|
||||
InstructionBreakpoint();
|
||||
~InstructionBreakpoint();
|
||||
|
||||
// An optional expression for conditional breakpoints.
|
||||
// It is only honored by a debug adapter if the capability
|
||||
// 'supportsConditionalBreakpoints' is true.
|
||||
optional<string> condition;
|
||||
// An optional expression that controls how many hits of the breakpoint are
|
||||
// ignored. The backend is expected to interpret the expression as needed. The
|
||||
// attribute is only honored by a debug adapter if the capability
|
||||
// 'supportsHitConditionalBreakpoints' is true.
|
||||
optional<string> hitCondition;
|
||||
// The instruction reference of the breakpoint.
|
||||
// This should be a memory or instruction pointer reference from an
|
||||
// EvaluateResponse, Variable, StackFrame, GotoTarget, or Breakpoint.
|
||||
string instructionReference;
|
||||
// An optional offset from the instruction reference.
|
||||
// This can be negative.
|
||||
optional<integer> offset;
|
||||
};
|
||||
|
||||
DAP_DECLARE_STRUCT_TYPEINFO(InstructionBreakpoint);
|
||||
|
||||
// Replaces all existing instruction breakpoints. Typically, instruction
|
||||
// breakpoints would be set from a diassembly window. To clear all instruction
|
||||
// breakpoints, specify an empty array. When an instruction breakpoint is hit, a
|
||||
// 'stopped' event (with reason 'instruction breakpoint') is generated. Clients
|
||||
// should only call this request if the capability
|
||||
// 'supportsInstructionBreakpoints' is true.
|
||||
struct SetInstructionBreakpointsRequest : public Request {
|
||||
using Response = SetInstructionBreakpointsResponse;
|
||||
|
||||
SetInstructionBreakpointsRequest();
|
||||
~SetInstructionBreakpointsRequest();
|
||||
|
||||
// The instruction references of the breakpoints
|
||||
array<InstructionBreakpoint> breakpoints;
|
||||
};
|
||||
|
||||
DAP_DECLARE_STRUCT_TYPEINFO(SetInstructionBreakpointsRequest);
|
||||
|
||||
// Response to 'setVariable' request.
|
||||
struct SetVariableResponse : public Response {
|
||||
SetVariableResponse();
|
||||
@@ -2263,6 +2349,9 @@ struct StepBackRequest : public Request {
|
||||
StepBackRequest();
|
||||
~StepBackRequest();
|
||||
|
||||
// Optional granularity to step. If no granularity is specified, a granularity
|
||||
// of 'statement' is assumed.
|
||||
optional<SteppingGranularity> granularity;
|
||||
// Execute 'stepBack' for this thread.
|
||||
integer threadId;
|
||||
};
|
||||
@@ -2292,6 +2381,9 @@ struct StepInRequest : public Request {
|
||||
StepInRequest();
|
||||
~StepInRequest();
|
||||
|
||||
// Optional granularity to step. If no granularity is specified, a granularity
|
||||
// of 'statement' is assumed.
|
||||
optional<SteppingGranularity> granularity;
|
||||
// Optional id of the target to step into.
|
||||
optional<integer> targetId;
|
||||
// Execute 'stepIn' for this thread.
|
||||
@@ -2360,6 +2452,9 @@ struct StepOutRequest : public Request {
|
||||
StepOutRequest();
|
||||
~StepOutRequest();
|
||||
|
||||
// Optional granularity to step. If no granularity is specified, a granularity
|
||||
// of 'statement' is assumed.
|
||||
optional<SteppingGranularity> granularity;
|
||||
// Execute 'stepOut' for this thread.
|
||||
integer threadId;
|
||||
};
|
||||
@@ -2368,7 +2463,7 @@ DAP_DECLARE_STRUCT_TYPEINFO(StepOutRequest);
|
||||
|
||||
// The event indicates that the execution of the debuggee has stopped due to
|
||||
// some condition. This can be caused by a break point previously set, a
|
||||
// stepping action has completed, by executing a debugger statement etc.
|
||||
// stepping request has completed, by executing a debugger statement etc.
|
||||
struct StoppedEvent : public Event {
|
||||
StoppedEvent();
|
||||
~StoppedEvent();
|
||||
@@ -2392,7 +2487,7 @@ struct StoppedEvent : public Event {
|
||||
//
|
||||
// May be one of the following enumeration values:
|
||||
// 'step', 'breakpoint', 'exception', 'pause', 'entry', 'goto', 'function
|
||||
// breakpoint', 'data breakpoint'
|
||||
// breakpoint', 'data breakpoint', 'instruction breakpoint'
|
||||
string reason;
|
||||
// Additional information. E.g. if reason is 'exception', text contains the
|
||||
// exception name. This string is shown in the UI.
|
||||
|
||||
Reference in New Issue
Block a user