================ @@ -977,7 +977,7 @@ void request_disconnect(const llvm::json::Object &request) { g_dap.debugger.SetAsync(false); lldb::SBError error = terminateDebuggee ? process.Kill() : process.Detach(); if (!error.Success()) - response.try_emplace("error", error.GetCString()); + response.try_emplace("error", std::string(error.GetCString())); ---------------- labath wrote:
`EmplaceSafeString` sounds like the right thing to use here. https://github.com/llvm/llvm-project/pull/92345 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits