[Lldb-commits] [lldb] support attaching by name for platform android (PR #160931)
Chad Smith via lldb-commits
lldb-commits at lists.llvm.org
Wed Oct 8 15:46:41 PDT 2025
================
@@ -477,6 +477,85 @@ std::string PlatformAndroid::GetRunAs() {
}
return run_as.str();
}
+uint32_t
+PlatformAndroid::FindProcesses(const ProcessInstanceInfoMatch &match_info,
+ ProcessInstanceInfoList &proc_infos) {
+ // Use the parent implementation for host platform
+ if (IsHost())
+ return PlatformLinux::FindProcesses(match_info, proc_infos);
+
+ // For remote Android platform, implement process name lookup using adb
+ proc_infos.clear();
----------------
cs01 wrote:
I was deferring to the other call to do it, but I think it's fine to do unconditionally
https://github.com/llvm/llvm-project/pull/160931
More information about the lldb-commits
mailing list