[Lldb-commits] [lldb] [lldb] Add support for unique target ids (PR #160736)

Walter Erquinigo via lldb-commits lldb-commits at lists.llvm.org
Thu Oct 2 08:22:23 PDT 2025


================
@@ -159,6 +159,17 @@ class TargetList : public Broadcaster {
 
   lldb::TargetSP FindTargetWithProcess(lldb_private::Process *process) const;
 
+  /// Find the target that has a globally unique ID that matches ID \a id
+  ///
+  /// \param[in] id
+  ///     The globally unique target ID to search our target list for.
+  ///
+  /// \return
+  ///     A shared pointer to a target object. The returned shared
+  ///     pointer will contain nullptr if no target objects has a
+  ///     matching target ID.
+  lldb::TargetSP FindTargetWithUniqueID(lldb::user_id_t id) const;
----------------
walter-erquinigo wrote:

include `globally` in the name of the function

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


More information about the lldb-commits mailing list