correctly roll-back late-hits for int3s

This commit is contained in:
Ryan Fleury
2024-05-29 08:08:44 -07:00
parent f65cf5436e
commit 2512d07c72
+1 -1
View File
@@ -1981,7 +1981,7 @@ dmn_ctrl_run(Arena *arena, DMN_CtrlCtx *ctx, DMN_RunCtrls *ctrls)
}
//- rjf: determine whether to roll back instruction pointer
B32 should_do_rollback = (hit_user_trap);
B32 should_do_rollback = (hit_user_trap || (is_trap && !hit_explicit_trap));
//- rjf: roll back thread's instruction pointer
U64 post_trap_rip = 0;