+/* Copyright (c) 2010-2012, 2014. The SimGrid Team.
+ * All rights reserved. */
+
+/* This program is free software; you can redistribute it and/or modify it
+ * under the terms of the license (GNU LGPL) which comes with this package. */
+
/*\r
* win32-ucontext: Unix ucontext_t operations on Windows platforms\r
* Copyright(C) 2007 Panagiotis E. Hadjidoukas\r
int ret;\r
\r
/* Retrieve the full machine context */ \r
- ucp->uc_mcontext.ContextFlags = CONTEXT_FULL;\r
+ ucp->uc_mcontext.ContextFlags = CONTEXT_FULL | CONTEXT_DEBUG_REGISTERS;\r
ret = GetThreadContext(GetCurrentThread(), &ucp->uc_mcontext);\r
return (ret == 0) ? -1 : 0;\r
}\r
#endif\r
\r
/* Save/Restore the full machine context */ \r
- ucp->uc_mcontext.ContextFlags = CONTEXT_FULL;\r
+ ucp->uc_mcontext.ContextFlags = CONTEXT_FULL | CONTEXT_DEBUG_REGISTERS;\r
\r
/* Copy the arguments */ \r
va_start(ap, argc);\r