<rdar://problem/11534686>
Reading memory from a file when the section is encrypted doesn't show an error. No we do.
git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@157484 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Target/Target.cpp b/source/Target/Target.cpp
index 442c08e..25d18aa 100644
--- a/source/Target/Target.cpp
+++ b/source/Target/Target.cpp
@@ -1062,6 +1062,7 @@
// If the contents of this section are encrypted, the on-disk file is unusuable. Read only from live memory.
if (section_sp->IsEncrypted())
{
+ error.SetErrorString("section is encrypted");
return 0;
}
ModuleSP module_sp (section_sp->GetModule());