1 | // Copyright 2019 Google LLC |
2 | // |
3 | // Licensed under the Apache License, Version 2.0 (the "License"); |
4 | // you may not use this file except in compliance with the License. |
5 | // You may obtain a copy of the License at |
6 | // |
7 | // https://www.apache.org/licenses/LICENSE-2.0 |
8 | // |
9 | // Unless required by applicable law or agreed to in writing, software |
10 | // distributed under the License is distributed on an "AS IS" BASIS, |
11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
12 | // See the License for the specific language governing permissions and |
13 | // limitations under the License. |
14 | |
15 | // Generated with protocol_gen.go -- do not edit this file. |
16 | // go run scripts/protocol_gen/protocol_gen.go |
17 | // |
18 | // DAP version 1.46.0 |
19 | |
20 | #include "dap/protocol.h" |
21 | |
22 | namespace dap { |
23 | |
24 | DAP_IMPLEMENT_STRUCT_TYPEINFO(AttachRequest, |
25 | "attach" , |
26 | DAP_FIELD(restart, "__restart" ), |
27 | DAP_FIELD(name, "name" ), |
28 | DAP_FIELD(type, "type" ), |
29 | DAP_FIELD(request, "request" ), |
30 | DAP_FIELD(__sessionId, "__sessionId" ), |
31 | DAP_FIELD(connect, "connect" ), |
32 | DAP_FIELD(justMyCode, "justMyCode" ), |
33 | DAP_FIELD(logToFile, "logToFile" ), |
34 | DAP_FIELD(__configurationTarget, "__configurationTarget" ), |
35 | DAP_FIELD(showReturnValue, "showReturnValue" ), |
36 | DAP_FIELD(debugOptions, "debugOptions" ), |
37 | DAP_FIELD(workspaceFolder, "workspaceFolder" )); |
38 | |
39 | DAP_IMPLEMENT_STRUCT_TYPEINFO(BreakpointLocationsRequest, |
40 | "breakpointLocations" , |
41 | DAP_FIELD(column, "column" ), |
42 | DAP_FIELD(endColumn, "endColumn" ), |
43 | DAP_FIELD(endLine, "endLine" ), |
44 | DAP_FIELD(line, "line" ), |
45 | DAP_FIELD(source, "source" )); |
46 | |
47 | DAP_IMPLEMENT_STRUCT_TYPEINFO(CancelRequest, |
48 | "cancel" , |
49 | DAP_FIELD(progressId, "progressId" ), |
50 | DAP_FIELD(requestId, "requestId" )); |
51 | |
52 | DAP_IMPLEMENT_STRUCT_TYPEINFO(CompletionsRequest, |
53 | "completions" , |
54 | DAP_FIELD(column, "column" ), |
55 | DAP_FIELD(frameId, "frameId" ), |
56 | DAP_FIELD(line, "line" ), |
57 | DAP_FIELD(text, "text" )); |
58 | |
59 | DAP_IMPLEMENT_STRUCT_TYPEINFO(ConfigurationDoneRequest, "configurationDone" ); |
60 | |
61 | DAP_IMPLEMENT_STRUCT_TYPEINFO(ContinueRequest, |
62 | "continue" , |
63 | DAP_FIELD(threadId, "threadId" )); |
64 | |
65 | DAP_IMPLEMENT_STRUCT_TYPEINFO(DataBreakpointInfoRequest, |
66 | "dataBreakpointInfo" , |
67 | DAP_FIELD(name, "name" ), |
68 | DAP_FIELD(variablesReference, |
69 | "variablesReference" )); |
70 | |
71 | DAP_IMPLEMENT_STRUCT_TYPEINFO(DisassembleRequest, |
72 | "disassemble" , |
73 | DAP_FIELD(instructionCount, "instructionCount" ), |
74 | DAP_FIELD(instructionOffset, "instructionOffset" ), |
75 | DAP_FIELD(memoryReference, "memoryReference" ), |
76 | DAP_FIELD(offset, "offset" ), |
77 | DAP_FIELD(resolveSymbols, "resolveSymbols" )); |
78 | |
79 | DAP_IMPLEMENT_STRUCT_TYPEINFO(DisconnectRequest, |
80 | "disconnect" , |
81 | DAP_FIELD(restart, "restart" ), |
82 | DAP_FIELD(terminateDebuggee, |
83 | "terminateDebuggee" )); |
84 | |
85 | DAP_IMPLEMENT_STRUCT_TYPEINFO(EvaluateRequest, |
86 | "evaluate" , |
87 | DAP_FIELD(context, "context" ), |
88 | DAP_FIELD(expression, "expression" ), |
89 | DAP_FIELD(format, "format" ), |
90 | DAP_FIELD(frameId, "frameId" )); |
91 | |
92 | DAP_IMPLEMENT_STRUCT_TYPEINFO(ExceptionInfoRequest, |
93 | "exceptionInfo" , |
94 | DAP_FIELD(threadId, "threadId" )); |
95 | |
96 | DAP_IMPLEMENT_STRUCT_TYPEINFO(GotoRequest, |
97 | "goto" , |
98 | DAP_FIELD(targetId, "targetId" ), |
99 | DAP_FIELD(threadId, "threadId" )); |
100 | |
101 | DAP_IMPLEMENT_STRUCT_TYPEINFO(GotoTargetsRequest, |
102 | "gotoTargets" , |
103 | DAP_FIELD(column, "column" ), |
104 | DAP_FIELD(line, "line" ), |
105 | DAP_FIELD(source, "source" )); |
106 | |
107 | DAP_IMPLEMENT_STRUCT_TYPEINFO( |
108 | InitializeRequest, |
109 | "initialize" , |
110 | DAP_FIELD(adapterID, "adapterID" ), |
111 | DAP_FIELD(clientID, "clientID" ), |
112 | DAP_FIELD(clientName, "clientName" ), |
113 | DAP_FIELD(columnsStartAt1, "columnsStartAt1" ), |
114 | DAP_FIELD(linesStartAt1, "linesStartAt1" ), |
115 | DAP_FIELD(locale, "locale" ), |
116 | DAP_FIELD(pathFormat, "pathFormat" ), |
117 | DAP_FIELD(supportsInvalidatedEvent, "supportsInvalidatedEvent" ), |
118 | DAP_FIELD(supportsMemoryReferences, "supportsMemoryReferences" ), |
119 | DAP_FIELD(supportsProgressReporting, "supportsProgressReporting" ), |
120 | DAP_FIELD(supportsRunInTerminalRequest, "supportsRunInTerminalRequest" ), |
121 | DAP_FIELD(supportsVariablePaging, "supportsVariablePaging" ), |
122 | DAP_FIELD(supportsVariableType, "supportsVariableType" ), |
123 | DAP_FIELD(supportsArgsCanBeInterpretedByShell, "supportsArgsCanBeInterpretedByShell" )); |
124 | |
125 | DAP_IMPLEMENT_STRUCT_TYPEINFO(LaunchRequest, |
126 | "launch" , |
127 | DAP_FIELD(restart, "__restart" ), |
128 | DAP_FIELD(noDebug, "noDebug" ), |
129 | // Added by mozart at 2022/03/02 |
130 | // Original struct not meet the requirment,some items added as follow. |
131 | DAP_FIELD(name, "name" ), |
132 | DAP_FIELD(type, "type" ), |
133 | DAP_FIELD(request, "request" ), |
134 | DAP_FIELD(program, "program" ), |
135 | DAP_FIELD(args, "args" ), |
136 | DAP_FIELD(stopAtEntry, "stopAtEntry" ), |
137 | DAP_FIELD(environment, "environment" ), |
138 | DAP_FIELD(cwd, "cwd" ), |
139 | DAP_FIELD(externalConsole, "externalConsole" ), |
140 | DAP_FIELD(MIMode, "MIMode" ), |
141 | DAP_FIELD(__configurationTarget, "__configurationTarget" ), |
142 | DAP_FIELD(__sessionId, "__sessionId" ), |
143 | |
144 | // java extra |
145 | DAP_FIELD(env, "env" ), |
146 | DAP_FIELD(vmArgs, "vmArgs" ), |
147 | DAP_FIELD(console, "console" ), |
148 | DAP_FIELD(internalConsoleOptions, "internalConsoleOptions" ), |
149 | DAP_FIELD(mainClass, "mainClass" ), |
150 | DAP_FIELD(projectName, "projectName" ), |
151 | DAP_FIELD(modulePaths, "modulePaths" ), |
152 | DAP_FIELD(classPaths, "classPaths" ), |
153 | DAP_FIELD(javaExec, "javaExec" ), |
154 | DAP_FIELD(shortenCommandLine, "shortenCommandLine" ) |
155 | ); |
156 | |
157 | DAP_IMPLEMENT_STRUCT_TYPEINFO(LoadedSourcesRequest, "loadedSources" ); |
158 | |
159 | DAP_IMPLEMENT_STRUCT_TYPEINFO(ModulesRequest, |
160 | "modules" , |
161 | DAP_FIELD(moduleCount, "moduleCount" ), |
162 | DAP_FIELD(startModule, "startModule" )); |
163 | |
164 | DAP_IMPLEMENT_STRUCT_TYPEINFO(NextRequest, |
165 | "next" , |
166 | DAP_FIELD(granularity, "granularity" ), |
167 | DAP_FIELD(threadId, "threadId" )); |
168 | |
169 | DAP_IMPLEMENT_STRUCT_TYPEINFO(PauseRequest, |
170 | "pause" , |
171 | DAP_FIELD(threadId, "threadId" )); |
172 | |
173 | DAP_IMPLEMENT_STRUCT_TYPEINFO(ReadMemoryRequest, |
174 | "readMemory" , |
175 | DAP_FIELD(count, "count" ), |
176 | DAP_FIELD(memoryReference, "memoryReference" ), |
177 | DAP_FIELD(offset, "offset" )); |
178 | |
179 | DAP_IMPLEMENT_STRUCT_TYPEINFO(RestartFrameRequest, |
180 | "restartFrame" , |
181 | DAP_FIELD(frameId, "frameId" )); |
182 | |
183 | DAP_IMPLEMENT_STRUCT_TYPEINFO(RestartRequest, "restart" ); |
184 | |
185 | DAP_IMPLEMENT_STRUCT_TYPEINFO(ReverseContinueRequest, |
186 | "reverseContinue" , |
187 | DAP_FIELD(threadId, "threadId" )); |
188 | |
189 | DAP_IMPLEMENT_STRUCT_TYPEINFO(RunInTerminalRequest, |
190 | "runInTerminal" , |
191 | DAP_FIELD(args, "args" ), |
192 | DAP_FIELD(cwd, "cwd" ), |
193 | DAP_FIELD(env, "env" ), |
194 | DAP_FIELD(kind, "kind" ), |
195 | DAP_FIELD(title, "title" )); |
196 | |
197 | DAP_IMPLEMENT_STRUCT_TYPEINFO(ScopesRequest, |
198 | "scopes" , |
199 | DAP_FIELD(frameId, "frameId" )); |
200 | |
201 | DAP_IMPLEMENT_STRUCT_TYPEINFO(SetBreakpointsRequest, |
202 | "setBreakpoints" , |
203 | DAP_FIELD(breakpoints, "breakpoints" ), |
204 | DAP_FIELD(lines, "lines" ), |
205 | DAP_FIELD(source, "source" ), |
206 | DAP_FIELD(sourceModified, "sourceModified" )); |
207 | |
208 | DAP_IMPLEMENT_STRUCT_TYPEINFO(SetDataBreakpointsRequest, |
209 | "setDataBreakpoints" , |
210 | DAP_FIELD(breakpoints, "breakpoints" )); |
211 | |
212 | DAP_IMPLEMENT_STRUCT_TYPEINFO(SetExceptionBreakpointsRequest, |
213 | "setExceptionBreakpoints" , |
214 | DAP_FIELD(exceptionOptions, "exceptionOptions" ), |
215 | DAP_FIELD(filterOptions, "filterOptions" ), |
216 | DAP_FIELD(filters, "filters" )); |
217 | |
218 | DAP_IMPLEMENT_STRUCT_TYPEINFO(SetExpressionRequest, |
219 | "setExpression" , |
220 | DAP_FIELD(expression, "expression" ), |
221 | DAP_FIELD(format, "format" ), |
222 | DAP_FIELD(frameId, "frameId" ), |
223 | DAP_FIELD(value, "value" )); |
224 | |
225 | DAP_IMPLEMENT_STRUCT_TYPEINFO(SetFunctionBreakpointsRequest, |
226 | "setFunctionBreakpoints" , |
227 | DAP_FIELD(breakpoints, "breakpoints" )); |
228 | |
229 | DAP_IMPLEMENT_STRUCT_TYPEINFO(SetInstructionBreakpointsRequest, |
230 | "setInstructionBreakpoints" , |
231 | DAP_FIELD(breakpoints, "breakpoints" )); |
232 | |
233 | DAP_IMPLEMENT_STRUCT_TYPEINFO(SetVariableRequest, |
234 | "setVariable" , |
235 | DAP_FIELD(format, "format" ), |
236 | DAP_FIELD(name, "name" ), |
237 | DAP_FIELD(value, "value" ), |
238 | DAP_FIELD(variablesReference, |
239 | "variablesReference" )); |
240 | |
241 | DAP_IMPLEMENT_STRUCT_TYPEINFO(SourceRequest, |
242 | "source" , |
243 | DAP_FIELD(source, "source" ), |
244 | DAP_FIELD(sourceReference, "sourceReference" )); |
245 | |
246 | DAP_IMPLEMENT_STRUCT_TYPEINFO(StackTraceRequest, |
247 | "stackTrace" , |
248 | DAP_FIELD(format, "format" ), |
249 | DAP_FIELD(levels, "levels" ), |
250 | DAP_FIELD(startFrame, "startFrame" ), |
251 | DAP_FIELD(threadId, "threadId" )); |
252 | |
253 | DAP_IMPLEMENT_STRUCT_TYPEINFO(StepBackRequest, |
254 | "stepBack" , |
255 | DAP_FIELD(granularity, "granularity" ), |
256 | DAP_FIELD(threadId, "threadId" )); |
257 | |
258 | DAP_IMPLEMENT_STRUCT_TYPEINFO(StepInRequest, |
259 | "stepIn" , |
260 | DAP_FIELD(granularity, "granularity" ), |
261 | DAP_FIELD(targetId, "targetId" ), |
262 | DAP_FIELD(threadId, "threadId" )); |
263 | |
264 | DAP_IMPLEMENT_STRUCT_TYPEINFO(StepInTargetsRequest, |
265 | "stepInTargets" , |
266 | DAP_FIELD(frameId, "frameId" )); |
267 | |
268 | DAP_IMPLEMENT_STRUCT_TYPEINFO(StepOutRequest, |
269 | "stepOut" , |
270 | DAP_FIELD(granularity, "granularity" ), |
271 | DAP_FIELD(threadId, "threadId" )); |
272 | |
273 | DAP_IMPLEMENT_STRUCT_TYPEINFO(TerminateRequest, |
274 | "terminate" , |
275 | DAP_FIELD(restart, "restart" )); |
276 | |
277 | DAP_IMPLEMENT_STRUCT_TYPEINFO(TerminateThreadsRequest, |
278 | "terminateThreads" , |
279 | DAP_FIELD(threadIds, "threadIds" )); |
280 | |
281 | DAP_IMPLEMENT_STRUCT_TYPEINFO(ThreadsRequest, "threads" ); |
282 | |
283 | DAP_IMPLEMENT_STRUCT_TYPEINFO(VariablesRequest, |
284 | "variables" , |
285 | DAP_FIELD(count, "count" ), |
286 | DAP_FIELD(filter, "filter" ), |
287 | DAP_FIELD(format, "format" ), |
288 | DAP_FIELD(start, "start" ), |
289 | DAP_FIELD(variablesReference, |
290 | "variablesReference" )); |
291 | |
292 | } // namespace dap |
293 | |