Lines Matching refs:dap
58 dap::Scope scope(Context::Lock &lock, const char *type, Scope *);
59 dap::Source source(File *);
60 std::shared_ptr<File> file(const dap::Source &source);
63 const std::unique_ptr<dap::net::Server> server;
64 const std::unique_ptr<dap::Session> session;
70 , server(dap::net::Server::create()) in Impl()
71 , session(dap::Session::create()) in Impl()
73 session->registerHandler([](const dap::DisconnectRequest &req) { in Impl()
75 return dap::DisconnectResponse(); in Impl()
78 session->registerHandler([&](const dap::InitializeRequest &req) { in Impl()
80 dap::InitializeResponse response; in Impl()
89 [&](const dap::ResponseOrError<dap::InitializeResponse> &response) { in Impl()
91 session->send(dap::InitializedEvent()); in Impl()
94 session->registerHandler([](const dap::SetExceptionBreakpointsRequest &req) { in Impl()
96 dap::SetExceptionBreakpointsResponse response; in Impl()
101 [this](const dap::SetFunctionBreakpointsRequest &req) { in Impl()
104 dap::SetFunctionBreakpointsResponse response; in Impl()
112 dap::Breakpoint resBP{}; in Impl()
129 [this](const dap::SetBreakpointsRequest &req) in Impl()
130 -> dap::ResponseOrError<dap::SetBreakpointsResponse> { in Impl()
140 dap::SetBreakpointsResponse response; in Impl()
151 dap::Breakpoint respBP; in Impl()
174 dap::SetBreakpointsResponse response; in Impl()
177 dap::Breakpoint bp; in Impl()
186 session->registerHandler([this](const dap::ThreadsRequest &req) { in Impl()
189 dap::ThreadsResponse response; in Impl()
205 dap::Thread out; in Impl()
214 [this](const dap::StackTraceRequest &req) in Impl()
215 -> dap::ResponseOrError<dap::StackTraceResponse> { in Impl()
222 return dap::Error("Thread %d not found", req.threadId); in Impl()
227 dap::StackTraceResponse response; in Impl()
234 dap::StackFrame sf; in Impl()
248 session->registerHandler([this](const dap::ScopesRequest &req) in Impl()
249 -> dap::ResponseOrError<dap::ScopesResponse> { in Impl()
256 return dap::Error("Frame %d not found", req.frameId); in Impl()
259 dap::ScopesResponse response; in Impl()
268 session->registerHandler([this](const dap::VariablesRequest &req) in Impl()
269 -> dap::ResponseOrError<dap::VariablesResponse> { in Impl()
276 return dap::Error("VariablesReference %d not found", in Impl()
280 dap::VariablesResponse response; in Impl()
282 dap::Variable out; in Impl()
298 session->registerHandler([this](const dap::SourceRequest &req) in Impl()
299 -> dap::ResponseOrError<dap::SourceResponse> { in Impl()
302 dap::SourceResponse response; in Impl()
309 return dap::Error("Source %d not found", id); in Impl()
315 session->registerHandler([this](const dap::PauseRequest &req) in Impl()
316 -> dap::ResponseOrError<dap::PauseResponse> { in Impl()
319 dap::StoppedEvent event; in Impl()
347 dap::PauseResponse response; in Impl()
351 session->registerHandler([this](const dap::ContinueRequest &req) in Impl()
352 -> dap::ResponseOrError<dap::ContinueResponse> { in Impl()
355 dap::ContinueResponse response; in Impl()
375 session->registerHandler([this](const dap::NextRequest &req) in Impl()
376 -> dap::ResponseOrError<dap::NextResponse> { in Impl()
383 return dap::Error("Unknown thread %d", int(req.threadId)); in Impl()
387 return dap::NextResponse(); in Impl()
390 session->registerHandler([this](const dap::StepInRequest &req) in Impl()
391 -> dap::ResponseOrError<dap::StepInResponse> { in Impl()
398 return dap::Error("Unknown thread %d", int(req.threadId)); in Impl()
402 return dap::StepInResponse(); in Impl()
405 session->registerHandler([this](const dap::StepOutRequest &req) in Impl()
406 -> dap::ResponseOrError<dap::StepOutResponse> { in Impl()
413 return dap::Error("Unknown thread %d", int(req.threadId)); in Impl()
417 return dap::StepOutResponse(); in Impl()
420 session->registerHandler([this](const dap::EvaluateRequest &req) in Impl()
421 -> dap::ResponseOrError<dap::EvaluateResponse> { in Impl()
430 return dap::Error("Unknown frame %d", int(req.frameId.value())); in Impl()
449 dap::EvaluateResponse response; in Impl()
483 return dap::Error("Could not evaluate expression"); in Impl()
486 session->registerHandler([](const dap::LaunchRequest &req) { in Impl()
488 return dap::LaunchResponse(); in Impl()
492 session->registerHandler([=](const dap::ConfigurationDoneRequest &req) { in Impl()
495 return dap::ConfigurationDoneResponse(); in Impl()
498 server->start(port, [&](const std::shared_ptr<dap::ReaderWriter> &rw) { in Impl()
520 dap::ThreadEvent event; in onThreadStarted()
528 dap::StoppedEvent event; in onThreadStepped()
536 dap::StoppedEvent event; in onLineBreakpointHit()
544 dap::StoppedEvent event; in onFunctionBreakpointHit()
550 dap::Scope Server::Impl::scope(Context::Lock &lock, const char *type, Scope *s) in scope()
552 dap::Scope out; in scope()
563 dap::Source Server::Impl::source(File *file) in source()
565 dap::Source out; in source()
575 std::shared_ptr<File> Server::Impl::file(const dap::Source &source) in file()