http://bugs.winehq.org/show_bug.cgi?id=25561
--- Comment #4 from rainy6144@gmail.com 2011-05-23 01:17:24 CDT --- Created an attachment (id=34868) --> (http://bugs.winehq.org/attachment.cgi?id=34868) Proposed patch
Apparently, when a debug register is used by a watchpoint, raise_trap_exception() inadvertently removes the FPU state from the context, and so when wineserver subsequently serves a get_thread_context request from the debugger, it does not have the FPU state to pass to the debugger (i.e. in the server's copy_context(), the FPU state is in flags but not in from->flags).
This patch seems to solve this problem.