[Lldb-commits] [lldb] [lldb] Enable locate module callback for main executable in launch mode (PR #176266)
Greg Clayton via lldb-commits
lldb-commits at lists.llvm.org
Tue Jan 20 10:29:09 PST 2026
================
@@ -138,6 +138,17 @@ class ModuleSpec {
/// the specified module.
void SetTarget(std::shared_ptr<Target> target) { m_target_wp = target; }
+ lldb::PlatformSP GetPlatformSP() const { return m_platform_wp.lock(); }
+
+ /// Set the platform to be used when resolving a module.
+ ///
+ /// This is useful when a Target is not yet available (e.g., during target
+ /// creation) but a Platform is. The platform can be used to invoke locate
+ /// module callbacks and other platform-specific module resolution logic.
+ void SetPlatform(std::shared_ptr<Platform> platform) {
----------------
clayborg wrote:
yes, use `lldb::PlatformSP`
https://github.com/llvm/llvm-project/pull/176266
More information about the lldb-commits
mailing list