diff options
author | Greg Clayton <gclayton@apple.com> | 2011-08-05 20:48:30 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2011-08-05 20:48:30 +0000 |
commit | a17ec9d84d06fcce9dc3746052c704d7f2682056 (patch) | |
tree | 888bf4835271a0433786b5b5ed55e6e19df15d0a /lldb/source/Plugins/Platform/MacOSX/PlatformRemoteiOS.cpp | |
parent | 9b97f1c3e624917d86b188c37b937a597cc807b3 (diff) | |
download | bcm5719-llvm-a17ec9d84d06fcce9dc3746052c704d7f2682056.tar.gz bcm5719-llvm-a17ec9d84d06fcce9dc3746052c704d7f2682056.zip |
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
Diffstat (limited to 'lldb/source/Plugins/Platform/MacOSX/PlatformRemoteiOS.cpp')
-rw-r--r-- | lldb/source/Plugins/Platform/MacOSX/PlatformRemoteiOS.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
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 @@ -441,8 +441,13 @@ PlatformRemoteiOS::GetSharedModule (const FileSpec &platform_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); |