<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Sun, Feb 5, 2017 at 12:31 AM, Sebastian Lackner <span dir="ltr"><<a href="mailto:sebastian@fds-team.de" target="_blank">sebastian@fds-team.de</a>></span> wrote:<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span>
<br>
</span>Wouldn't it make more sense to add a proper implementation for all debug registers?<br>
We already have the signal_i386 code for an example how to do it, and other functions<br>
like NtGetContextThread also support querying the debug registers (even on x86_64).<br><br></blockquote><div><br></div><div>I looked at NtGetContextThread and I was wary of adding a server call to save_context.</div><div><br></div><div>Looking at the i386 version, it seems that NtGetContextThread caches the debug registers</div><div>so that save_context doesn't need to do a server call. I can add something similar for</div><div>x86_64, if there isn't a reason not to.</div><div><br></div><div>-Andrew</div></div><br></div></div>