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.



git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@131454 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp b/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
index 0008bdb..58799f7 100644
--- a/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
+++ b/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
@@ -1596,7 +1596,7 @@
                         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)