aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Commands/CommandObjectTarget.cpp
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2016-02-25 00:56:47 +0000
committerGreg Clayton <gclayton@apple.com>2016-02-25 00:56:47 +0000
commit479d545ca2d499f791a84722e0c84f1aa55428b8 (patch)
tree2ae3cf5ce3a465fd9519627edb4d70670894cf48 /lldb/source/Commands/CommandObjectTarget.cpp
parent4f933376cf1df64c6e169e5f423679c6d9d55c40 (diff)
downloadllvm-479d545ca2d499f791a84722e0c84f1aa55428b8.zip
llvm-479d545ca2d499f791a84722e0c84f1aa55428b8.tar.gz
llvm-479d545ca2d499f791a84722e0c84f1aa55428b8.tar.bz2
Fix "target modules add -s <filename>" to work if the file doesn't exist locally on the current machine.
<rdar://problem/24807382> llvm-svn: 261812
Diffstat (limited to 'lldb/source/Commands/CommandObjectTarget.cpp')
-rw-r--r--lldb/source/Commands/CommandObjectTarget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Commands/CommandObjectTarget.cpp b/lldb/source/Commands/CommandObjectTarget.cpp
index 4e86fd9..aeaca59d 100644
--- a/lldb/source/Commands/CommandObjectTarget.cpp
+++ b/lldb/source/Commands/CommandObjectTarget.cpp
@@ -4684,7 +4684,7 @@ protected:
{
module_spec.GetArchitecture() = target->GetArchitecture();
}
- success |= module_spec.GetFileSpec().Exists();
+ success |= module_spec.GetUUID().IsValid() || module_spec.GetFileSpec().Exists();
}
}