[Lldb-commits] [lldb] r155867 - /lldb/branches/lldb-platform-work/source/Plugins/Platform/MacOSX/PlatformRemoteiOS.cpp

Johnny Chen johnny.chen at apple.com
Mon Apr 30 17:26:36 PDT 2012


Author: johnny
Date: Mon Apr 30 19:26:36 2012
New Revision: 155867

URL: http://llvm.org/viewvc/llvm-project?rev=155867&view=rev
Log:
Utilize the utility method PlatformDarwin::GetSharedModuleWithCache() refactored from PlatformMacOSX.

rdar://problem/11350095

Modified:
    lldb/branches/lldb-platform-work/source/Plugins/Platform/MacOSX/PlatformRemoteiOS.cpp

Modified: lldb/branches/lldb-platform-work/source/Plugins/Platform/MacOSX/PlatformRemoteiOS.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/branches/lldb-platform-work/source/Plugins/Platform/MacOSX/PlatformRemoteiOS.cpp?rev=155867&r1=155866&r2=155867&view=diff
==============================================================================
--- lldb/branches/lldb-platform-work/source/Plugins/Platform/MacOSX/PlatformRemoteiOS.cpp (original)
+++ lldb/branches/lldb-platform-work/source/Plugins/Platform/MacOSX/PlatformRemoteiOS.cpp Mon Apr 30 19:26:36 2012
@@ -638,6 +638,15 @@
         // Not the module we are looking for... Nothing to see here...
         module_sp.reset();
     }
+    else
+    {
+        // This may not be an SDK-related module.  Try whether we can bring in the thing to our local cache.
+        error = GetSharedModuleWithLocalCache(module_spec, module_sp, module_search_paths_ptr, old_module_sp_ptr, did_create_ptr);
+        if (error.Success())
+            return error;
+        else
+            error.Clear(); // Clear the error and fall-through.
+    }
 
     const bool always_create = false;
     error = ModuleList::GetSharedModule (module_spec, 





More information about the lldb-commits mailing list