[Lldb-commits] [lldb] [lldb] Get shared cache path from inferior, open (PR #180323)

Jonas Devlieghere via lldb-commits lldb-commits at lists.llvm.org
Mon Feb 9 02:05:49 PST 2026


================
@@ -688,17 +688,25 @@ void dyld_shared_cache_for_each_image(dyld_shared_cache_t cache,
     return m_caches[m_host_uuid];
   }
 
+  bool GetImages(llvm::StringMap<SharedCacheImageInfo> **images, UUID &uuid) {
+    if (m_caches.find(uuid) != m_caches.end()) {
+      *images = &m_caches[uuid];
+      return true;
+    }
+    return false;
+  }
+
+  // Given the UUID and filepath to a shared cache on the local debug host
+  // system, open it and add all of the binary images to m_caches.
----------------
JDevlieghere wrote:

There can be Doxygen comments. 
```suggestion
  /// Given the UUID and filepath to a shared cache on the local debug host
  /// system, open it and add all of the binary images to m_caches.
```

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


More information about the lldb-commits mailing list