summaryrefslogtreecommitdiff
path: root/lldb/source/Target/Target.cpp
diff options
context:
space:
mode:
authorPavel Labath <pavel@labath.sk>2025-03-19 09:43:17 +0100
committerPavel Labath <pavel@labath.sk>2025-03-19 09:51:10 +0100
commit7dbcdd578cd4d37b1f4094dbd17556be6382f1cc (patch)
tree021e330a8de654f4014a7b2f309bcdc6215a4abc /lldb/source/Target/Target.cpp
parent415dd383e4066717178870f1927f542a3d96621a (diff)
Revert "[LLDB][Telemetry]Define TargetInfo for collecting data about a target (#127834)"
This reverts commit 04e39ce3fddaaec41d9c7babcca55133d7e49969 due to test breakage.
Diffstat (limited to 'lldb/source/Target/Target.cpp')
-rw-r--r--lldb/source/Target/Target.cpp21
1 files changed, 0 insertions, 21 deletions
diff --git a/lldb/source/Target/Target.cpp b/lldb/source/Target/Target.cpp
index c26bca546891..bbc2110dada5 100644
--- a/lldb/source/Target/Target.cpp
+++ b/lldb/source/Target/Target.cpp
@@ -24,7 +24,6 @@
#include "lldb/Core/Section.h"
#include "lldb/Core/SourceManager.h"
#include "lldb/Core/StructuredDataImpl.h"
-#include "lldb/Core/Telemetry.h"
#include "lldb/DataFormatters/FormatterSection.h"
#include "lldb/Expression/DiagnosticManager.h"
#include "lldb/Expression/ExpressionVariable.h"
@@ -1560,30 +1559,10 @@ void Target::DidExec() {
void Target::SetExecutableModule(ModuleSP &executable_sp,
LoadDependentFiles load_dependent_files) {
- telemetry::ScopedDispatcher<telemetry::ExecutableModuleInfo> helper(
- &m_debugger);
Log *log = GetLog(LLDBLog::Target);
ClearModules(false);
if (executable_sp) {
- lldb::pid_t pid = LLDB_INVALID_PROCESS_ID;
- if (ProcessSP proc = GetProcessSP())
- pid = proc->GetID();
-
- helper.DispatchNow([&](telemetry::ExecutableModuleInfo *info) {
- info->exec_mod = executable_sp;
- info->uuid = executable_sp->GetUUID();
- info->pid = pid;
- info->triple = executable_sp->GetArchitecture().GetTriple().getTriple();
- info->is_start_entry = true;
- });
-
- helper.DispatchOnExit([&](telemetry::ExecutableModuleInfo *info) {
- info->exec_mod = executable_sp;
- info->uuid = executable_sp->GetUUID();
- info->pid = pid;
- });
-
ElapsedTime elapsed(m_stats.GetCreateTime());
LLDB_SCOPED_TIMERF("Target::SetExecutableModule (executable = '%s')",
executable_sp->GetFileSpec().GetPath().c_str());