aboutsummaryrefslogtreecommitdiff
path: root/lldb/tools/lldb-dap/Handler
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/tools/lldb-dap/Handler')
-rw-r--r--lldb/tools/lldb-dap/Handler/RequestHandler.cpp11
-rw-r--r--lldb/tools/lldb-dap/Handler/RestartRequestHandler.cpp2
2 files changed, 8 insertions, 5 deletions
diff --git a/lldb/tools/lldb-dap/Handler/RequestHandler.cpp b/lldb/tools/lldb-dap/Handler/RequestHandler.cpp
index de63c9d..d67437a 100644
--- a/lldb/tools/lldb-dap/Handler/RequestHandler.cpp
+++ b/lldb/tools/lldb-dap/Handler/RequestHandler.cpp
@@ -157,11 +157,12 @@ RunInTerminal(DAP &dap, const protocol::LaunchRequestArguments &arguments) {
void BaseRequestHandler::Run(const Request &request) {
// If this request was cancelled, send a cancelled response.
if (dap.IsCancelled(request)) {
- Response cancelled{/*request_seq=*/request.seq,
- /*command=*/request.command,
- /*success=*/false,
- /*message=*/eResponseMessageCancelled,
- /*body=*/std::nullopt};
+ Response cancelled{
+ /*request_seq=*/request.seq,
+ /*command=*/request.command,
+ /*success=*/false,
+ /*message=*/eResponseMessageCancelled,
+ };
dap.Send(cancelled);
return;
}
diff --git a/lldb/tools/lldb-dap/Handler/RestartRequestHandler.cpp b/lldb/tools/lldb-dap/Handler/RestartRequestHandler.cpp
index 45dd7dd..100173b 100644
--- a/lldb/tools/lldb-dap/Handler/RestartRequestHandler.cpp
+++ b/lldb/tools/lldb-dap/Handler/RestartRequestHandler.cpp
@@ -124,6 +124,8 @@ void RestartRequestHandler::operator()(
return;
}
+ SendProcessEvent(dap, Launch);
+
// This is normally done after receiving a "configuration done" request.
// Because we're restarting, configuration has already happened so we can
// continue the process right away.