protocol_requests.cpp 13 KB

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