================
@@ -1559,10 +1560,29 @@ void Target::DidExec() {
void Target::SetExecutableModule(ModuleSP &executable_sp,
LoadDependentFiles load_dependent_files) {
+ telemetry::ScopedDispatcher<telemetry::ExecModuleInfo> helper(&m_debugger);
Log *log = GetLog(LLDBLog::Target);
ClearModules(false);
if (executable_sp) {
+ m_current_exec_mod_uuid = executable_sp->GetUUID();
+ lldb::pid_t pid;
+ if (ProcessSP proc = GetProcessSP())
+ pid = proc->GetID();
+ helper.DispatchNow([&](telemetry::ExecModuleInfo *info) {
+ info->exec_mod = executable_sp;
+ info->exec_uuid = m_current_exec_mod_uuid;
+ info->pid = pid;
+ info->arch_name = executable_sp->GetArchitecture().GetArchitectureName();
----------------
oontvoo wrote:
done
https://github.com/llvm/llvm-project/pull/127834
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits