<div dir="ltr">FWIW on the NativeProcessLinux side (llgs branch) I'm solving this more like how the existing code did it:<div><br></div><div><div>--- a/source/Plugins/Process/Linux/NativeProcessLinux.cpp</div><div>+++ b/source/Plugins/Process/Linux/NativeProcessLinux.cpp</div>
<div>@@ -52,6 +52,12 @@</div><div> #define DEBUG_PTRACE_MAXBYTES 20</div><div> </div><div> // Support ptrace extensions even when compiled without required kernel support</div><div>+#ifndef PTRACE_GETREGS</div><div>+#define PTRACE_GETREGS 12</div>
<div>+#endif</div><div>+#ifndef PTRACE_SETREGS</div><div>+  #define PTRACE_SETREGS 13</div><div>+#endif</div><div> #ifndef PTRACE_GETREGSET</div><div>   #define PTRACE_GETREGSET 0x4204</div><div> #endif</div></div><div><br>
</div><div>That approach should also clear up the cross compile issues.  More importantly, if it's really running this code on the target, where the ptrace support really does exist, then the code would still run properly.</div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Jun 23, 2014 at 9:07 AM, Todd Fiala <span dir="ltr"><<a href="mailto:tfiala@google.com" target="_blank">tfiala@google.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">svn commit<br>
Sending        source/Plugins/Process/Linux/ProcessMonitor.cpp<br>
Transmitting file data .<br>
Committed revision 211503.<br>
<br>
<a href="http://reviews.llvm.org/D4091" target="_blank">http://reviews.llvm.org/D4091</a><br>
<br>
<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <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>
</div>