aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2011-05-17 03:51:29 +0000
committerGreg Clayton <gclayton@apple.com>2011-05-17 03:51:29 +0000
commite6a9e439d451fa1741235e157591a7eb7b91a5e7 (patch)
treec42a70ed40265aafadbf0c7ece2f11c14369e993 /lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
parentd495c5340d57a30a83496e6e9794b8bc746f99ad (diff)
downloadllvm-e6a9e439d451fa1741235e157591a7eb7b91a5e7.zip
llvm-e6a9e439d451fa1741235e157591a7eb7b91a5e7.tar.gz
llvm-e6a9e439d451fa1741235e157591a7eb7b91a5e7.tar.bz2
Fixed the "mmap" to work on MacOSX/darwin by supplying the correct arguemnts.
Modified ClangUserExpression and ClangUtilityFunction to display the actual error (if one is available) that made the JIT fail instead of a canned response. Fixed the restoring of all register values when the 'G' packet doesn't work to use the correct data. llvm-svn: 131454
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp')
-rw-r--r--lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
index 0008bdb..58799f7 100644
--- a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
+++ b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
@@ -1596,7 +1596,7 @@ ProcessGDBRemote::DoAllocateMemory (size_t size, uint32_t permissions, Error &er
addr_t arg1_addr = 0;
addr_t arg2_len = size;
addr_t arg3_prot = PROT_NONE;
- addr_t arg4_flags = MAP_ANON;
+ addr_t arg4_flags = MAP_ANON | MAP_PRIVATE;
addr_t arg5_fd = -1;
addr_t arg6_offset = 0;
if (permissions & lldb::ePermissionsReadable)