ntdll: Add debug registers to the context of all exceptions.
Maintain a local cache of the debug registers to avoid server calls
where possible.
diff --git a/server/thread.c b/server/thread.c
index 3ffbf85..1c00ce7 100644
--- a/server/thread.c
+++ b/server/thread.c
@@ -1094,6 +1094,7 @@
         memset( data, 0, sizeof(CONTEXT) );
         get_thread_context( thread, data, req->flags );
     }
+    reply->self = (thread == current);
     release_object( thread );
 }