[Lldb-commits] [lldb] r261812 - Fix "target modules add -s <filename>" to work if the file doesn't exist locally on the current machine.

Greg Clayton via lldb-commits lldb-commits at lists.llvm.org
Wed Feb 24 16:56:47 PST 2016


Author: gclayton
Date: Wed Feb 24 18:56:47 2016
New Revision: 261812

URL: http://llvm.org/viewvc/llvm-project?rev=261812&view=rev
Log:
Fix "target modules add -s <filename>" to work if the file doesn't exist locally on the current machine.

<rdar://problem/24807382>


Modified:
    lldb/trunk/source/Commands/CommandObjectTarget.cpp

Modified: lldb/trunk/source/Commands/CommandObjectTarget.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Commands/CommandObjectTarget.cpp?rev=261812&r1=261811&r2=261812&view=diff
==============================================================================
--- lldb/trunk/source/Commands/CommandObjectTarget.cpp (original)
+++ lldb/trunk/source/Commands/CommandObjectTarget.cpp Wed Feb 24 18:56:47 2016
@@ -4684,7 +4684,7 @@ protected:
                         {
                             module_spec.GetArchitecture() = target->GetArchitecture();
                         }
-                        success |= module_spec.GetFileSpec().Exists();
+                        success |= module_spec.GetUUID().IsValid() || module_spec.GetFileSpec().Exists();
                     }
                 }
 




More information about the lldb-commits mailing list