Skip to content
Snippets Groups Projects
Commit a3a119cd authored by pw's avatar pw
Browse files

Peter's fix for FP control word.

parent bffa2f79
No related branches found
No related tags found
No related merge requests found
...@@ -191,6 +191,10 @@ sigtrap_handler(HANDLER_ARGS) ...@@ -191,6 +191,10 @@ sigtrap_handler(HANDLER_ARGS)
GET_CONTEXT GET_CONTEXT
#endif #endif
#ifdef __linux__
__setfpucw(contextstruct.fpstate->cw);
#endif
/* Don't disallow recursive breakpoint traps. Otherwise, we can't */ /* Don't disallow recursive breakpoint traps. Otherwise, we can't */
/* use debugger breakpoints anywhere in here. */ /* use debugger breakpoints anywhere in here. */
/*fprintf(stderr,"x86sigtrap: %8x %x\n", context->sc_pc, *(char*)(context->sc_pc-1)); /*fprintf(stderr,"x86sigtrap: %8x %x\n", context->sc_pc, *(char*)(context->sc_pc-1));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment