[Lldb-commits] [lldb] r155509 - /lldb/trunk/source/Target/Target.cpp
Jason Molenda
jmolenda at apple.com
Tue Apr 24 17:06:56 PDT 2012
Author: jmolenda
Date: Tue Apr 24 19:06:56 2012
New Revision: 155509
URL: http://llvm.org/viewvc/llvm-project?rev=155509&view=rev
Log:
Change Target::ReadMemoryFromFileCache to not read from the file
if the section is marked as encrypted. It will likely be readable
in live memory.
<rdar://problem/11305675>
Modified:
lldb/trunk/source/Target/Target.cpp
Modified: lldb/trunk/source/Target/Target.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Target/Target.cpp?rev=155509&r1=155508&r2=155509&view=diff
==============================================================================
--- lldb/trunk/source/Target/Target.cpp (original)
+++ lldb/trunk/source/Target/Target.cpp Tue Apr 24 19:06:56 2012
@@ -1064,6 +1064,11 @@
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)
{
More information about the lldb-commits
mailing list