Path: blob/master/Utilities/cmcppdap/src/protocol_requests.cpp
3153 views
// Copyright 2019 Google LLC1//2// Licensed under the Apache License, Version 2.0 (the "License");3// you may not use this file except in compliance with the License.4// You may obtain a copy of the License at5//6// https://www.apache.org/licenses/LICENSE-2.07//8// Unless required by applicable law or agreed to in writing, software9// distributed under the License is distributed on an "AS IS" BASIS,10// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.11// See the License for the specific language governing permissions and12// limitations under the License.1314// Generated with protocol_gen.go -- do not edit this file.15// go run scripts/protocol_gen/protocol_gen.go16//17// DAP version 1.65.01819#include "dap/protocol.h"2021namespace dap {2223DAP_IMPLEMENT_STRUCT_TYPEINFO(AttachRequest,24"attach",25DAP_FIELD(restart, "__restart"));2627DAP_IMPLEMENT_STRUCT_TYPEINFO(BreakpointLocationsRequest,28"breakpointLocations",29DAP_FIELD(column, "column"),30DAP_FIELD(endColumn, "endColumn"),31DAP_FIELD(endLine, "endLine"),32DAP_FIELD(line, "line"),33DAP_FIELD(source, "source"));3435DAP_IMPLEMENT_STRUCT_TYPEINFO(CancelRequest,36"cancel",37DAP_FIELD(progressId, "progressId"),38DAP_FIELD(requestId, "requestId"));3940DAP_IMPLEMENT_STRUCT_TYPEINFO(CompletionsRequest,41"completions",42DAP_FIELD(column, "column"),43DAP_FIELD(frameId, "frameId"),44DAP_FIELD(line, "line"),45DAP_FIELD(text, "text"));4647DAP_IMPLEMENT_STRUCT_TYPEINFO(ConfigurationDoneRequest, "configurationDone");4849DAP_IMPLEMENT_STRUCT_TYPEINFO(ContinueRequest,50"continue",51DAP_FIELD(singleThread, "singleThread"),52DAP_FIELD(threadId, "threadId"));5354DAP_IMPLEMENT_STRUCT_TYPEINFO(DataBreakpointInfoRequest,55"dataBreakpointInfo",56DAP_FIELD(frameId, "frameId"),57DAP_FIELD(mode, "mode"),58DAP_FIELD(name, "name"),59DAP_FIELD(variablesReference,60"variablesReference"));6162DAP_IMPLEMENT_STRUCT_TYPEINFO(DisassembleRequest,63"disassemble",64DAP_FIELD(instructionCount, "instructionCount"),65DAP_FIELD(instructionOffset, "instructionOffset"),66DAP_FIELD(memoryReference, "memoryReference"),67DAP_FIELD(offset, "offset"),68DAP_FIELD(resolveSymbols, "resolveSymbols"));6970DAP_IMPLEMENT_STRUCT_TYPEINFO(DisconnectRequest,71"disconnect",72DAP_FIELD(restart, "restart"),73DAP_FIELD(suspendDebuggee, "suspendDebuggee"),74DAP_FIELD(terminateDebuggee,75"terminateDebuggee"));7677DAP_IMPLEMENT_STRUCT_TYPEINFO(EvaluateRequest,78"evaluate",79DAP_FIELD(context, "context"),80DAP_FIELD(expression, "expression"),81DAP_FIELD(format, "format"),82DAP_FIELD(frameId, "frameId"));8384DAP_IMPLEMENT_STRUCT_TYPEINFO(ExceptionInfoRequest,85"exceptionInfo",86DAP_FIELD(threadId, "threadId"));8788DAP_IMPLEMENT_STRUCT_TYPEINFO(GotoRequest,89"goto",90DAP_FIELD(targetId, "targetId"),91DAP_FIELD(threadId, "threadId"));9293DAP_IMPLEMENT_STRUCT_TYPEINFO(GotoTargetsRequest,94"gotoTargets",95DAP_FIELD(column, "column"),96DAP_FIELD(line, "line"),97DAP_FIELD(source, "source"));9899DAP_IMPLEMENT_STRUCT_TYPEINFO(100InitializeRequest,101"initialize",102DAP_FIELD(adapterID, "adapterID"),103DAP_FIELD(clientID, "clientID"),104DAP_FIELD(clientName, "clientName"),105DAP_FIELD(columnsStartAt1, "columnsStartAt1"),106DAP_FIELD(linesStartAt1, "linesStartAt1"),107DAP_FIELD(locale, "locale"),108DAP_FIELD(pathFormat, "pathFormat"),109DAP_FIELD(supportsArgsCanBeInterpretedByShell,110"supportsArgsCanBeInterpretedByShell"),111DAP_FIELD(supportsInvalidatedEvent, "supportsInvalidatedEvent"),112DAP_FIELD(supportsMemoryEvent, "supportsMemoryEvent"),113DAP_FIELD(supportsMemoryReferences, "supportsMemoryReferences"),114DAP_FIELD(supportsProgressReporting, "supportsProgressReporting"),115DAP_FIELD(supportsRunInTerminalRequest, "supportsRunInTerminalRequest"),116DAP_FIELD(supportsStartDebuggingRequest, "supportsStartDebuggingRequest"),117DAP_FIELD(supportsVariablePaging, "supportsVariablePaging"),118DAP_FIELD(supportsVariableType, "supportsVariableType"));119120DAP_IMPLEMENT_STRUCT_TYPEINFO(LaunchRequest,121"launch",122DAP_FIELD(restart, "__restart"),123DAP_FIELD(noDebug, "noDebug"));124125DAP_IMPLEMENT_STRUCT_TYPEINFO(LoadedSourcesRequest, "loadedSources");126127DAP_IMPLEMENT_STRUCT_TYPEINFO(ModulesRequest,128"modules",129DAP_FIELD(moduleCount, "moduleCount"),130DAP_FIELD(startModule, "startModule"));131132DAP_IMPLEMENT_STRUCT_TYPEINFO(NextRequest,133"next",134DAP_FIELD(granularity, "granularity"),135DAP_FIELD(singleThread, "singleThread"),136DAP_FIELD(threadId, "threadId"));137138DAP_IMPLEMENT_STRUCT_TYPEINFO(PauseRequest,139"pause",140DAP_FIELD(threadId, "threadId"));141142DAP_IMPLEMENT_STRUCT_TYPEINFO(ReadMemoryRequest,143"readMemory",144DAP_FIELD(count, "count"),145DAP_FIELD(memoryReference, "memoryReference"),146DAP_FIELD(offset, "offset"));147148DAP_IMPLEMENT_STRUCT_TYPEINFO(RestartFrameRequest,149"restartFrame",150DAP_FIELD(frameId, "frameId"));151152DAP_IMPLEMENT_STRUCT_TYPEINFO(RestartRequest,153"restart",154DAP_FIELD(arguments, "arguments"));155156DAP_IMPLEMENT_STRUCT_TYPEINFO(ReverseContinueRequest,157"reverseContinue",158DAP_FIELD(singleThread, "singleThread"),159DAP_FIELD(threadId, "threadId"));160161DAP_IMPLEMENT_STRUCT_TYPEINFO(RunInTerminalRequest,162"runInTerminal",163DAP_FIELD(args, "args"),164DAP_FIELD(argsCanBeInterpretedByShell,165"argsCanBeInterpretedByShell"),166DAP_FIELD(cwd, "cwd"),167DAP_FIELD(env, "env"),168DAP_FIELD(kind, "kind"),169DAP_FIELD(title, "title"));170171DAP_IMPLEMENT_STRUCT_TYPEINFO(ScopesRequest,172"scopes",173DAP_FIELD(frameId, "frameId"));174175DAP_IMPLEMENT_STRUCT_TYPEINFO(SetBreakpointsRequest,176"setBreakpoints",177DAP_FIELD(breakpoints, "breakpoints"),178DAP_FIELD(lines, "lines"),179DAP_FIELD(source, "source"),180DAP_FIELD(sourceModified, "sourceModified"));181182DAP_IMPLEMENT_STRUCT_TYPEINFO(SetDataBreakpointsRequest,183"setDataBreakpoints",184DAP_FIELD(breakpoints, "breakpoints"));185186DAP_IMPLEMENT_STRUCT_TYPEINFO(SetExceptionBreakpointsRequest,187"setExceptionBreakpoints",188DAP_FIELD(exceptionOptions, "exceptionOptions"),189DAP_FIELD(filterOptions, "filterOptions"),190DAP_FIELD(filters, "filters"));191192DAP_IMPLEMENT_STRUCT_TYPEINFO(SetExpressionRequest,193"setExpression",194DAP_FIELD(expression, "expression"),195DAP_FIELD(format, "format"),196DAP_FIELD(frameId, "frameId"),197DAP_FIELD(value, "value"));198199DAP_IMPLEMENT_STRUCT_TYPEINFO(SetFunctionBreakpointsRequest,200"setFunctionBreakpoints",201DAP_FIELD(breakpoints, "breakpoints"));202203DAP_IMPLEMENT_STRUCT_TYPEINFO(SetInstructionBreakpointsRequest,204"setInstructionBreakpoints",205DAP_FIELD(breakpoints, "breakpoints"));206207DAP_IMPLEMENT_STRUCT_TYPEINFO(SetVariableRequest,208"setVariable",209DAP_FIELD(format, "format"),210DAP_FIELD(name, "name"),211DAP_FIELD(value, "value"),212DAP_FIELD(variablesReference,213"variablesReference"));214215DAP_IMPLEMENT_STRUCT_TYPEINFO(SourceRequest,216"source",217DAP_FIELD(source, "source"),218DAP_FIELD(sourceReference, "sourceReference"));219220DAP_IMPLEMENT_STRUCT_TYPEINFO(StackTraceRequest,221"stackTrace",222DAP_FIELD(format, "format"),223DAP_FIELD(levels, "levels"),224DAP_FIELD(startFrame, "startFrame"),225DAP_FIELD(threadId, "threadId"));226227DAP_IMPLEMENT_STRUCT_TYPEINFO(StartDebuggingRequest,228"startDebugging",229DAP_FIELD(configuration, "configuration"),230DAP_FIELD(request, "request"));231232DAP_IMPLEMENT_STRUCT_TYPEINFO(StepBackRequest,233"stepBack",234DAP_FIELD(granularity, "granularity"),235DAP_FIELD(singleThread, "singleThread"),236DAP_FIELD(threadId, "threadId"));237238DAP_IMPLEMENT_STRUCT_TYPEINFO(StepInRequest,239"stepIn",240DAP_FIELD(granularity, "granularity"),241DAP_FIELD(singleThread, "singleThread"),242DAP_FIELD(targetId, "targetId"),243DAP_FIELD(threadId, "threadId"));244245DAP_IMPLEMENT_STRUCT_TYPEINFO(StepInTargetsRequest,246"stepInTargets",247DAP_FIELD(frameId, "frameId"));248249DAP_IMPLEMENT_STRUCT_TYPEINFO(StepOutRequest,250"stepOut",251DAP_FIELD(granularity, "granularity"),252DAP_FIELD(singleThread, "singleThread"),253DAP_FIELD(threadId, "threadId"));254255DAP_IMPLEMENT_STRUCT_TYPEINFO(TerminateRequest,256"terminate",257DAP_FIELD(restart, "restart"));258259DAP_IMPLEMENT_STRUCT_TYPEINFO(TerminateThreadsRequest,260"terminateThreads",261DAP_FIELD(threadIds, "threadIds"));262263DAP_IMPLEMENT_STRUCT_TYPEINFO(ThreadsRequest, "threads");264265DAP_IMPLEMENT_STRUCT_TYPEINFO(VariablesRequest,266"variables",267DAP_FIELD(count, "count"),268DAP_FIELD(filter, "filter"),269DAP_FIELD(format, "format"),270DAP_FIELD(start, "start"),271DAP_FIELD(variablesReference,272"variablesReference"));273274DAP_IMPLEMENT_STRUCT_TYPEINFO(WriteMemoryRequest,275"writeMemory",276DAP_FIELD(allowPartial, "allowPartial"),277DAP_FIELD(data, "data"),278DAP_FIELD(memoryReference, "memoryReference"),279DAP_FIELD(offset, "offset"));280281} // namespace dap282283284