[Lldb-commits] [lldb] [lldb] Properly handle locate module callback when Target change arch (PR #143793)
Greg Clayton via lldb-commits
lldb-commits at lists.llvm.org
Tue Jun 17 10:15:41 PDT 2025
================
@@ -1706,6 +1706,8 @@ bool Target::SetArchitecture(const ArchSpec &arch_spec, bool set_platform,
if (PlatformSP arch_platform_sp =
GetDebugger().GetPlatformList().GetOrCreate(other, {},
&platform_arch)) {
+ arch_platform_sp->SetLocateModuleCallback(
+ platform_sp->GetLocateModuleCallback());
----------------
clayborg wrote:
This almost seems like the SetLocateModuleCallback should be on the target instead of on the platform. But this will work around the issue for sure.
https://github.com/llvm/llvm-project/pull/143793
More information about the lldb-commits
mailing list