diff options
Diffstat (limited to 'lldb/source/Target/Target.cpp')
| -rw-r--r-- | lldb/source/Target/Target.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lldb/source/Target/Target.cpp b/lldb/source/Target/Target.cpp index 6671a765e0b..ef187da557a 100644 --- a/lldb/source/Target/Target.cpp +++ b/lldb/source/Target/Target.cpp @@ -1064,6 +1064,11 @@ Target::ReadMemoryFromFileCache (const Address& addr, void *dst, size_t dst_len, SectionSP section_sp (addr.GetSection()); if (section_sp) { + // If the contents of this section are encrypted, the on-disk file is unusuable. Read only from live memory. + if (section_sp->IsEncrypted()) + { + return 0; + } ModuleSP module_sp (section_sp->GetModule()); if (module_sp) { |

