[Lldb-commits] [lldb] [LLDB][Telemetry]Define TargetInfo for collecting data about a target (PR #127834)

Jonas Devlieghere via lldb-commits lldb-commits at lists.llvm.org
Tue Mar 18 10:20:36 PDT 2025


================
@@ -1066,6 +1067,26 @@ const char *Process::GetExitDescription() {
 bool Process::SetExitStatus(int status, llvm::StringRef exit_string) {
   // Use a mutex to protect setting the exit status.
   std::lock_guard<std::mutex> guard(m_exit_status_mutex);
+  telemetry::ScopedDispatcher<telemetry::ProcessExitInfo> helper;
+
+  // Find the executable-module's UUID, if available.
+  Target &target = GetTarget();
+  helper.SetDebugger(&(target.GetDebugger()));
----------------
JDevlieghere wrote:

```suggestion
  helper.SetDebugger(&target.GetDebugger());
```

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


More information about the lldb-commits mailing list