[Lldb-commits] [lldb] [lldb-dap] Send a 'process' event on restart. (PR #163833)

Jonas Devlieghere via lldb-commits lldb-commits at lists.llvm.org
Thu Oct 16 15:19:28 PDT 2025


================
@@ -136,7 +137,9 @@ void SendProcessEvent(DAP &dap, LaunchMethod launch_method) {
   EmplaceSafeString(body, "name", exe_path);
   const auto pid = dap.target.GetProcess().GetProcessID();
   body.try_emplace("systemProcessId", (int64_t)pid);
-  body.try_emplace("isLocalProcess", true);
+  body.try_emplace("isLocalProcess",
+                   dap.target.GetPlatform().GetName() ==
+                       lldb::SBPlatform::GetHostPlatform().GetName());
----------------
JDevlieghere wrote:

Should we expose `Platform::IsHost` through the SB API?

https://github.com/llvm/llvm-project/pull/163833


More information about the lldb-commits mailing list