[Lldb-commits] [lldb] [lldb] Expose SBPlatform::GetAllProcesses to the SB API (PR #68378)
Jonas Devlieghere via lldb-commits
lldb-commits at lists.llvm.org
Thu Oct 5 21:35:57 PDT 2023
================
@@ -989,6 +989,14 @@ uint32_t Platform::FindProcesses(const ProcessInstanceInfoMatch &match_info,
return match_count;
}
+ProcessInstanceInfoList Platform::GetAllProcesses() {
+ ProcessInstanceInfoList processes;
+ ProcessInstanceInfoMatch match;
+ assert(match.MatchAllProcesses());
----------------
JDevlieghere wrote:
This ensures that the default constructed `ProcessInstanceInfoMatch` actually matches all processes. This is the method that the implementation keys off of, so it seemed appropriate to have sanity check here.
https://github.com/llvm/llvm-project/pull/68378
More information about the lldb-commits
mailing list