[Lldb-commits] [lldb] r233893 - Handle LC_ENCRYPTION_64 in addition to LC_ENCRYPTION load commands in
Jason Molenda
jmolenda at apple.com
Wed Apr 1 22:19:33 PDT 2015
Author: jmolenda
Date: Thu Apr 2 00:19:33 2015
New Revision: 233893
URL: http://llvm.org/viewvc/llvm-project?rev=233893&view=rev
Log:
Handle LC_ENCRYPTION_64 in addition to LC_ENCRYPTION load commands in
Mach-O files.
<rdar://problem/20113673>
Modified:
lldb/trunk/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp
Modified: lldb/trunk/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp?rev=233893&r1=233892&r2=233893&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp (original)
+++ lldb/trunk/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp Thu Apr 2 00:19:33 2015
@@ -1464,7 +1464,9 @@ ObjectFileMachO::CreateSections (Section
if (m_data.GetU32(&offset, &encryption_cmd, 2) == NULL)
break;
- if (encryption_cmd.cmd == LC_ENCRYPTION_INFO)
+ // LC_ENCRYPTION_INFO and LC_ENCRYPTION_INFO_64 have the same sizes for
+ // the 3 fields we care about, so treat them the same.
+ if (encryption_cmd.cmd == LC_ENCRYPTION_INFO || encryption_cmd.cmd == LC_ENCRYPTION_INFO_64)
{
if (m_data.GetU32(&offset, &encryption_cmd.cryptoff, 3))
{
More information about the lldb-commits
mailing list