From a17ec9d84d06fcce9dc3746052c704d7f2682056 Mon Sep 17 00:00:00 2001 From: Greg Clayton Date: Fri, 5 Aug 2011 20:48:30 +0000 Subject: Fixed issues for iOS debugging where if a device has a native architecture that doesn't match the universal slice that is being used for all executables, we weren't correctly descending through the platform architectures and resolving the binaries. llvm-svn: 136980 --- lldb/source/Plugins/Platform/MacOSX/PlatformRemoteiOS.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'lldb/source/Plugins/Platform/MacOSX/PlatformRemoteiOS.cpp') diff --git a/lldb/source/Plugins/Platform/MacOSX/PlatformRemoteiOS.cpp b/lldb/source/Plugins/Platform/MacOSX/PlatformRemoteiOS.cpp index 1bcbbddb9f4..2b83156e759 100644 --- a/lldb/source/Plugins/Platform/MacOSX/PlatformRemoteiOS.cpp +++ b/lldb/source/Plugins/Platform/MacOSX/PlatformRemoteiOS.cpp @@ -440,9 +440,14 @@ PlatformRemoteiOS::GetSharedModule (const FileSpec &platform_file, FileSpec local_file; error = GetFile (platform_file, uuid_ptr, local_file); if (error.Success()) + { + + error = ResolveExecutable (local_file, arch, module_sp); + } + else { const bool always_create = false; - error = ModuleList::GetSharedModule (local_file, + error = ModuleList::GetSharedModule (platform_file, arch, uuid_ptr, object_name_ptr, @@ -451,6 +456,7 @@ PlatformRemoteiOS::GetSharedModule (const FileSpec &platform_file, old_module_sp_ptr, did_create_ptr, always_create); + } if (module_sp) module_sp->SetPlatformFileSpec(platform_file); -- cgit v1.2.3