| 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.65.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 |
|
| 28 |
DAP_IMPLEMENT_STRUCT_TYPEINFO(BreakpointLocationsRequest, |
| 29 |
"breakpointLocations", |
| 30 |
DAP_FIELD(column, "column"), |
| 31 |
DAP_FIELD(endColumn, "endColumn"), |
| 32 |
DAP_FIELD(endLine, "endLine"), |
| 33 |
DAP_FIELD(line, "line"), |
| 34 |
DAP_FIELD(source, "source")); |
| 35 |
|
| 36 |
DAP_IMPLEMENT_STRUCT_TYPEINFO(CancelRequest, |
| 37 |
"cancel", |
| 38 |
DAP_FIELD(progressId, "progressId"), |
| 39 |
DAP_FIELD(requestId, "requestId")); |
| 40 |
|
| 41 |
DAP_IMPLEMENT_STRUCT_TYPEINFO(CompletionsRequest, |
| 42 |
"completions", |
| 43 |
DAP_FIELD(column, "column"), |
| 44 |
DAP_FIELD(frameId, "frameId"), |
| 45 |
DAP_FIELD(line, "line"), |
| 46 |
DAP_FIELD(text, "text")); |
| 47 |
|
| 48 |
DAP_IMPLEMENT_STRUCT_TYPEINFO(ConfigurationDoneRequest, "configurationDone"); |
| 49 |
|
| 50 |
DAP_IMPLEMENT_STRUCT_TYPEINFO(ContinueRequest, |
| 51 |
"continue", |
| 52 |
DAP_FIELD(singleThread, "singleThread"), |
| 53 |
DAP_FIELD(threadId, "threadId")); |
| 54 |
|
| 55 |
DAP_IMPLEMENT_STRUCT_TYPEINFO(DataBreakpointInfoRequest, |
| 56 |
"dataBreakpointInfo", |
| 57 |
DAP_FIELD(frameId, "frameId"), |
| 58 |
DAP_FIELD(mode, "mode"), |
| 59 |
DAP_FIELD(name, "name"), |
| 60 |
DAP_FIELD(variablesReference, |
| 61 |
"variablesReference")); |
| 62 |
|
| 63 |
DAP_IMPLEMENT_STRUCT_TYPEINFO(DisassembleRequest, |
| 64 |
"disassemble", |
| 65 |
DAP_FIELD(instructionCount, "instructionCount"), |
| 66 |
DAP_FIELD(instructionOffset, "instructionOffset"), |
| 67 |
DAP_FIELD(memoryReference, "memoryReference"), |
| 68 |
DAP_FIELD(offset, "offset"), |
| 69 |
DAP_FIELD(resolveSymbols, "resolveSymbols")); |
| 70 |
|
| 71 |
DAP_IMPLEMENT_STRUCT_TYPEINFO(DisconnectRequest, |
| 72 |
"disconnect", |
| 73 |
DAP_FIELD(restart, "restart"), |
| 74 |
DAP_FIELD(suspendDebuggee, "suspendDebuggee"), |
| 75 |
DAP_FIELD(terminateDebuggee, |
| 76 |
"terminateDebuggee")); |
| 77 |
|
| 78 |
DAP_IMPLEMENT_STRUCT_TYPEINFO(EvaluateRequest, |
| 79 |
"evaluate", |
| 80 |
DAP_FIELD(context, "context"), |
| 81 |
DAP_FIELD(expression, "expression"), |
| 82 |
DAP_FIELD(format, "format"), |
| 83 |
DAP_FIELD(frameId, "frameId")); |
| 84 |
|
| 85 |
DAP_IMPLEMENT_STRUCT_TYPEINFO(ExceptionInfoRequest, |
| 86 |
"exceptionInfo", |
| 87 |
DAP_FIELD(threadId, "threadId")); |
| 88 |
|
| 89 |
DAP_IMPLEMENT_STRUCT_TYPEINFO(GotoRequest, |
| 90 |
"goto", |
| 91 |
DAP_FIELD(targetId, "targetId"), |
| 92 |
DAP_FIELD(threadId, "threadId")); |
| 93 |
|
| 94 |
DAP_IMPLEMENT_STRUCT_TYPEINFO(GotoTargetsRequest, |
| 95 |
"gotoTargets", |
| 96 |
DAP_FIELD(column, "column"), |
| 97 |
DAP_FIELD(line, "line"), |
| 98 |
DAP_FIELD(source, "source")); |
| 99 |
|
| 100 |
DAP_IMPLEMENT_STRUCT_TYPEINFO( |
| 101 |
InitializeRequest, |
| 102 |
"initialize", |
| 103 |
DAP_FIELD(adapterID, "adapterID"), |
| 104 |
DAP_FIELD(clientID, "clientID"), |
| 105 |
DAP_FIELD(clientName, "clientName"), |
| 106 |
DAP_FIELD(columnsStartAt1, "columnsStartAt1"), |
| 107 |
DAP_FIELD(linesStartAt1, "linesStartAt1"), |
| 108 |
DAP_FIELD(locale, "locale"), |
| 109 |
DAP_FIELD(pathFormat, "pathFormat"), |
| 110 |
DAP_FIELD(supportsArgsCanBeInterpretedByShell, |
| 111 |
"supportsArgsCanBeInterpretedByShell"), |
| 112 |
DAP_FIELD(supportsInvalidatedEvent, "supportsInvalidatedEvent"), |
| 113 |
DAP_FIELD(supportsMemoryEvent, "supportsMemoryEvent"), |
| 114 |
DAP_FIELD(supportsMemoryReferences, "supportsMemoryReferences"), |
| 115 |
DAP_FIELD(supportsProgressReporting, "supportsProgressReporting"), |
| 116 |
DAP_FIELD(supportsRunInTerminalRequest, "supportsRunInTerminalRequest"), |
| 117 |
DAP_FIELD(supportsStartDebuggingRequest, "supportsStartDebuggingRequest"), |
| 118 |
DAP_FIELD(supportsVariablePaging, "supportsVariablePaging"), |
| 119 |
DAP_FIELD(supportsVariableType, "supportsVariableType")); |
| 120 |
|
| 121 |
DAP_IMPLEMENT_STRUCT_TYPEINFO(LaunchRequest, |
| 122 |
"launch", |
| 123 |
DAP_FIELD(restart, "__restart"), |
| 124 |
DAP_FIELD(noDebug, "noDebug")); |
| 125 |
|
| 126 |
DAP_IMPLEMENT_STRUCT_TYPEINFO(LoadedSourcesRequest, "loadedSources"); |
| 127 |
|
| 128 |
DAP_IMPLEMENT_STRUCT_TYPEINFO(ModulesRequest, |
| 129 |
"modules", |
| 130 |
DAP_FIELD(moduleCount, "moduleCount"), |
| 131 |
DAP_FIELD(startModule, "startModule")); |
| 132 |
|
| 133 |
DAP_IMPLEMENT_STRUCT_TYPEINFO(NextRequest, |
| 134 |
"next", |
| 135 |
DAP_FIELD(granularity, "granularity"), |
| 136 |
DAP_FIELD(singleThread, "singleThread"), |
| 137 |
DAP_FIELD(threadId, "threadId")); |
| 138 |
|
| 139 |
DAP_IMPLEMENT_STRUCT_TYPEINFO(PauseRequest, |
| 140 |
"pause", |
| 141 |
DAP_FIELD(threadId, "threadId")); |
| 142 |
|
| 143 |
DAP_IMPLEMENT_STRUCT_TYPEINFO(ReadMemoryRequest, |
| 144 |
"readMemory", |
| 145 |
DAP_FIELD(count, "count"), |
| 146 |
DAP_FIELD(memoryReference, "memoryReference"), |
| 147 |
DAP_FIELD(offset, "offset")); |
| 148 |
|
| 149 |
DAP_IMPLEMENT_STRUCT_TYPEINFO(RestartFrameRequest, |
| 150 |
"restartFrame", |
| 151 |
DAP_FIELD(frameId, "frameId")); |
| 152 |
|
| 153 |
DAP_IMPLEMENT_STRUCT_TYPEINFO(RestartRequest, |
| 154 |
"restart", |
| 155 |
DAP_FIELD(arguments, "arguments")); |
| 156 |
|
| 157 |
DAP_IMPLEMENT_STRUCT_TYPEINFO(ReverseContinueRequest, |
| 158 |
"reverseContinue", |
| 159 |
DAP_FIELD(singleThread, "singleThread"), |
| 160 |
DAP_FIELD(threadId, "threadId")); |
| 161 |
|
| 162 |
DAP_IMPLEMENT_STRUCT_TYPEINFO(RunInTerminalRequest, |
| 163 |
"runInTerminal", |
| 164 |
DAP_FIELD(args, "args"), |
| 165 |
DAP_FIELD(argsCanBeInterpretedByShell, |
| 166 |
"argsCanBeInterpretedByShell"), |
| 167 |
DAP_FIELD(cwd, "cwd"), |
| 168 |
DAP_FIELD(env, "env"), |
| 169 |
DAP_FIELD(kind, "kind"), |
| 170 |
DAP_FIELD(title, "title")); |
| 171 |
|
| 172 |
DAP_IMPLEMENT_STRUCT_TYPEINFO(ScopesRequest, |
| 173 |
"scopes", |
| 174 |
DAP_FIELD(frameId, "frameId")); |
| 175 |
|
| 176 |
DAP_IMPLEMENT_STRUCT_TYPEINFO(SetBreakpointsRequest, |
| 177 |
"setBreakpoints", |
| 178 |
DAP_FIELD(breakpoints, "breakpoints"), |
| 179 |
DAP_FIELD(lines, "lines"), |
| 180 |
DAP_FIELD(source, "source"), |
| 181 |
DAP_FIELD(sourceModified, "sourceModified")); |
| 182 |
|
| 183 |
DAP_IMPLEMENT_STRUCT_TYPEINFO(SetDataBreakpointsRequest, |
| 184 |
"setDataBreakpoints", |
| 185 |
DAP_FIELD(breakpoints, "breakpoints")); |
| 186 |
|
| 187 |
DAP_IMPLEMENT_STRUCT_TYPEINFO(SetExceptionBreakpointsRequest, |
| 188 |
"setExceptionBreakpoints", |
| 189 |
DAP_FIELD(exceptionOptions, "exceptionOptions"), |
| 190 |
DAP_FIELD(filterOptions, "filterOptions"), |
| 191 |
DAP_FIELD(filters, "filters")); |
| 192 |
|
| 193 |
DAP_IMPLEMENT_STRUCT_TYPEINFO(SetExpressionRequest, |
| 194 |
"setExpression", |
| 195 |
DAP_FIELD(expression, "expression"), |
| 196 |
DAP_FIELD(format, "format"), |
| 197 |
DAP_FIELD(frameId, "frameId"), |
| 198 |
DAP_FIELD(value, "value")); |
| 199 |
|
| 200 |
DAP_IMPLEMENT_STRUCT_TYPEINFO(SetFunctionBreakpointsRequest, |
| 201 |
"setFunctionBreakpoints", |
| 202 |
DAP_FIELD(breakpoints, "breakpoints")); |
| 203 |
|
| 204 |
DAP_IMPLEMENT_STRUCT_TYPEINFO(SetInstructionBreakpointsRequest, |
| 205 |
"setInstructionBreakpoints", |
| 206 |
DAP_FIELD(breakpoints, "breakpoints")); |
| 207 |
|
| 208 |
DAP_IMPLEMENT_STRUCT_TYPEINFO(SetVariableRequest, |
| 209 |
"setVariable", |
| 210 |
DAP_FIELD(format, "format"), |
| 211 |
DAP_FIELD(name, "name"), |
| 212 |
DAP_FIELD(value, "value"), |
| 213 |
DAP_FIELD(variablesReference, |
| 214 |
"variablesReference")); |
| 215 |
|
| 216 |
DAP_IMPLEMENT_STRUCT_TYPEINFO(SourceRequest, |
| 217 |
"source", |
| 218 |
DAP_FIELD(source, "source"), |
| 219 |
DAP_FIELD(sourceReference, "sourceReference")); |
| 220 |
|
| 221 |
DAP_IMPLEMENT_STRUCT_TYPEINFO(StackTraceRequest, |
| 222 |
"stackTrace", |
| 223 |
DAP_FIELD(format, "format"), |
| 224 |
DAP_FIELD(levels, "levels"), |
| 225 |
DAP_FIELD(startFrame, "startFrame"), |
| 226 |
DAP_FIELD(threadId, "threadId")); |
| 227 |
|
| 228 |
DAP_IMPLEMENT_STRUCT_TYPEINFO(StartDebuggingRequest, |
| 229 |
"startDebugging", |
| 230 |
DAP_FIELD(configuration, "configuration"), |
| 231 |
DAP_FIELD(request, "request")); |
| 232 |
|
| 233 |
DAP_IMPLEMENT_STRUCT_TYPEINFO(StepBackRequest, |
| 234 |
"stepBack", |
| 235 |
DAP_FIELD(granularity, "granularity"), |
| 236 |
DAP_FIELD(singleThread, "singleThread"), |
| 237 |
DAP_FIELD(threadId, "threadId")); |
| 238 |
|
| 239 |
DAP_IMPLEMENT_STRUCT_TYPEINFO(StepInRequest, |
| 240 |
"stepIn", |
| 241 |
DAP_FIELD(granularity, "granularity"), |
| 242 |
DAP_FIELD(singleThread, "singleThread"), |
| 243 |
DAP_FIELD(targetId, "targetId"), |
| 244 |
DAP_FIELD(threadId, "threadId")); |
| 245 |
|
| 246 |
DAP_IMPLEMENT_STRUCT_TYPEINFO(StepInTargetsRequest, |
| 247 |
"stepInTargets", |
| 248 |
DAP_FIELD(frameId, "frameId")); |
| 249 |
|
| 250 |
DAP_IMPLEMENT_STRUCT_TYPEINFO(StepOutRequest, |
| 251 |
"stepOut", |
| 252 |
DAP_FIELD(granularity, "granularity"), |
| 253 |
DAP_FIELD(singleThread, "singleThread"), |
| 254 |
DAP_FIELD(threadId, "threadId")); |
| 255 |
|
| 256 |
DAP_IMPLEMENT_STRUCT_TYPEINFO(TerminateRequest, |
| 257 |
"terminate", |
| 258 |
DAP_FIELD(restart, "restart")); |
| 259 |
|
| 260 |
DAP_IMPLEMENT_STRUCT_TYPEINFO(TerminateThreadsRequest, |
| 261 |
"terminateThreads", |
| 262 |
DAP_FIELD(threadIds, "threadIds")); |
| 263 |
|
| 264 |
DAP_IMPLEMENT_STRUCT_TYPEINFO(ThreadsRequest, "threads"); |
| 265 |
|
| 266 |
DAP_IMPLEMENT_STRUCT_TYPEINFO(VariablesRequest, |
| 267 |
"variables", |
| 268 |
DAP_FIELD(count, "count"), |
| 269 |
DAP_FIELD(filter, "filter"), |
| 270 |
DAP_FIELD(format, "format"), |
| 271 |
DAP_FIELD(start, "start"), |
| 272 |
DAP_FIELD(variablesReference, |
| 273 |
"variablesReference")); |
| 274 |
|
| 275 |
DAP_IMPLEMENT_STRUCT_TYPEINFO(WriteMemoryRequest, |
| 276 |
"writeMemory", |
| 277 |
DAP_FIELD(allowPartial, "allowPartial"), |
| 278 |
DAP_FIELD(data, "data"), |
| 279 |
DAP_FIELD(memoryReference, "memoryReference"), |
| 280 |
DAP_FIELD(offset, "offset")); |
| 281 |
|
| 282 |
} // namespace dap |