mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
ide: debugger: Fixed problem with FP exceptions #830
git-svn-id: svn://ultimatepp.org/upp/trunk@7583 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
084ce79f20
commit
bb7914c49f
1 changed files with 3 additions and 3 deletions
|
|
@ -217,21 +217,21 @@ void Pdb::WriteContext(HANDLE hThread, Context& context)
|
|||
if(win64) {
|
||||
CONTEXT ctx;
|
||||
memcpy(&ctx, &context.context64, sizeof(CONTEXT));
|
||||
ctx.ContextFlags = CONTEXT_FULL;
|
||||
ctx.ContextFlags = CONTEXT_CONTROL;
|
||||
if(!SetThreadContext(hThread, &ctx))
|
||||
Error("SetThreadContext failed");
|
||||
}
|
||||
else {
|
||||
WOW64_CONTEXT ctx;
|
||||
memcpy(&ctx, &context.context32, sizeof(WOW64_CONTEXT));
|
||||
ctx.ContextFlags = CONTEXT_FULL;
|
||||
ctx.ContextFlags = CONTEXT_CONTROL;
|
||||
if(!Wow64SetThreadContext(hThread, &ctx))
|
||||
Error("Wow64SetThreadContext failed");
|
||||
}
|
||||
#else
|
||||
CONTEXT ctx;
|
||||
memcpy(&ctx, &context.context32, sizeof(WOW64_CONTEXT));
|
||||
ctx.ContextFlags = CONTEXT_FULL;
|
||||
ctx.ContextFlags = CONTEXT_CONTROL;
|
||||
if(!SetThreadContext(hThread, &ctx))
|
||||
Error("SetThreadContext failed");
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue