The defined flags were meant to prevent issues we've hit when cross-compiling for ARM simulators where the cross-compilers occasionally are missing some values. But I didn't actually hit that so fair enough, I can remove it until we know it's an issue.<div>
<br></div><div>I just need a buddy build on FreeBSD (or I can watch their buildbot).<span></span><br><div><br>On Saturday, August 16, 2014, Chandler Carruth <<a href="mailto:chandlerc@gmail.com">chandlerc@gmail.com</a>> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Looks good to me.<br>
<br>
================<br>
Comment at: source/Plugins/Process/Linux/NativeProcessLinux.cpp:96-98<br>
@@ -94,2 +95,5 @@<br>
<br>
+// Define personality-related custom flag here so cross compilers and others always have the flag.<br>
+#define LLDB_PERSONALITY_ADDR_NO_RANDOMIZE     0x00040000<br>
+#define LLDB_PERSONALITY_GET_CURRENT_SETTINGS  0xffffffff<br>
<br>
----------------<br>
The comment here doesn't make much sense in a file which unconditionally #includes <linux/unistd.h> and <sys/personality.h>. This file can only be compiled on a Linux host or with a Linux SDK kicking around.<br>

<br>
I think you can just use the enums from <sys/personality.h>. They aren't weird or surprising even if their documentation is limited.<br>
<br>
<a href="http://reviews.llvm.org/D4941" target="_blank">http://reviews.llvm.org/D4941</a><br>
<br>
<br>
</blockquote></div></div><br><br>-- <br><div dir="ltr"><table cellspacing="0" cellpadding="0" style="color:rgb(136,136,136);font-family:'Times New Roman'"><tbody><tr style="color:rgb(85,85,85);font-family:sans-serif;font-size:small">
<td nowrap style="border-top-style:solid;border-top-color:rgb(213,15,37);border-top-width:2px">Todd Fiala |</td><td nowrap style="border-top-style:solid;border-top-color:rgb(51,105,232);border-top-width:2px"> Software Engineer |</td>
<td nowrap style="border-top-style:solid;border-top-color:rgb(0,153,57);border-top-width:2px"> <a href="mailto:tfiala@google.com" style="color:rgb(17,85,204)" target="_blank"><span style="background-color:rgb(255,255,204);color:rgb(34,34,34);background-repeat:initial initial">tfiala@google.com</span></a> |</td>
<td nowrap style="border-top-style:solid;border-top-color:rgb(238,178,17);border-top-width:2px"><font color="#1155cc"> <a>650-943-3180</a></font></td></tr></tbody></table><br></div><br>