From: unknown Date: Mon, 13 Feb 2012 12:46:59 +0000 (+0100) Subject: On win32, fix configure when try to compile and run ucontexts tests. X-Git-Tag: exp_20120216~14 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/6b80b383f901036e4de2c17d1f3220493e9d49e7 On win32, fix configure when try to compile and run ucontexts tests. --- diff --git a/src/xbt/win32_ucontext.c b/src/xbt/win32_ucontext.c index 1d8adceb82..b6d5caf9fb 100644 --- a/src/xbt/win32_ucontext.c +++ b/src/xbt/win32_ucontext.c @@ -27,7 +27,7 @@ int getcontext(ucontext_t * ucp) int ret; /* Retrieve the full machine context */ - ucp->uc_mcontext.ContextFlags = CONTEXT_FULL; + ucp->uc_mcontext.ContextFlags = CONTEXT_FULL | CONTEXT_DEBUG_REGISTERS; ret = GetThreadContext(GetCurrentThread(), &ucp->uc_mcontext); return (ret == 0) ? -1 : 0; } @@ -72,7 +72,7 @@ int makecontext(ucontext_t * ucp, void (*func) (), int argc, ...) #endif /* Save/Restore the full machine context */ - ucp->uc_mcontext.ContextFlags = CONTEXT_FULL; + ucp->uc_mcontext.ContextFlags = CONTEXT_FULL | CONTEXT_DEBUG_REGISTERS; /* Copy the arguments */ va_start(ap, argc);