[Lldb-commits] [lldb] r179077 - Fixed the way we allocate executable memory on

Sean Callanan scallanan at apple.com
Mon Apr 8 18:13:08 PDT 2013


Author: spyffe
Date: Mon Apr  8 20:13:08 2013
New Revision: 179077

URL: http://llvm.org/viewvc/llvm-project?rev=179077&view=rev
Log:
Fixed the way we allocate executable memory on
behalf of the JIT.  We don't need it to be writable
since we are using special APIs to write into it.

<rdar://problem/13599185>

Modified:
    lldb/trunk/source/Expression/IRExecutionUnit.cpp

Modified: lldb/trunk/source/Expression/IRExecutionUnit.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Expression/IRExecutionUnit.cpp?rev=179077&r1=179076&r2=179077&view=diff
==============================================================================
--- lldb/trunk/source/Expression/IRExecutionUnit.cpp (original)
+++ lldb/trunk/source/Expression/IRExecutionUnit.cpp Mon Apr  8 20:13:08 2013
@@ -490,7 +490,7 @@ IRExecutionUnit::MemoryManager::allocate
     uint8_t *return_value = m_default_mm_ap->allocateCodeSection(Size, Alignment, SectionID);
     
     m_parent.m_records.push_back(AllocationRecord((uintptr_t)return_value,
-                                                  lldb::ePermissionsReadable | lldb::ePermissionsWritable | lldb::ePermissionsExecutable,
+                                                  lldb::ePermissionsReadable | lldb::ePermissionsExecutable,
                                                   Size,
                                                   Alignment,
                                                   SectionID));





More information about the lldb-commits mailing list