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(); } } _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits