mirror of
https://github.com/reactos/wine.git
synced 2024-11-29 06:30:37 +00:00
Correctly convert into EXCEPTION_RECORD SIGTRAPs received from
DebugBreakProcess.
This commit is contained in:
parent
cc02ef89c4
commit
8638b26483
@ -842,6 +842,12 @@ static void do_trap( CONTEXT *context, int trap_code )
|
||||
{
|
||||
context->ContextFlags = CONTEXT_DEBUG_REGISTERS;
|
||||
NtGetContextThread(GetCurrentThread(), context);
|
||||
/* do we really have a bp from a debug register ?
|
||||
* if not, then someone did a kill(SIGTRAP) on us, and we
|
||||
* shall return a breakpoint, not a single step exception
|
||||
*/
|
||||
if (!(context->Dr6 & 0xf))
|
||||
rec.ExceptionCode = EXCEPTION_BREAKPOINT;
|
||||
}
|
||||
break;
|
||||
case T_BPTFLT: /* Breakpoint exception */
|
||||
|
Loading…
Reference in New Issue
Block a user