From 7305c12166ba767324e5a8e417e4fa675b0a25bb Mon Sep 17 00:00:00 2001 From: Ryan Fleury Date: Tue, 6 Feb 2024 13:48:05 -0800 Subject: [PATCH] reset control context unwind count when submitting all runs --- src/df/core/df_core.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/df/core/df_core.c b/src/df/core/df_core.c index f22853a1..a70712f6 100644 --- a/src/df/core/df_core.c +++ b/src/df/core/df_core.c @@ -3939,6 +3939,9 @@ df_ctrl_run(DF_RunKind run, DF_Entity *run_thread, CTRL_TrapList *run_traps) df_state->ctrl_last_run_traps = ctrl_trap_list_copy(df_state->ctrl_last_run_arena, &run_traps_copy); df_state->ctrl_is_running = 1; + // rjf: set control context to top unwind + df_state->ctrl_ctx.unwind_count = 0; + scratch_end(scratch); dbgi_scope_close(scope); }