From c2bebf2a5308e247d573b90853a13f17ca20cb95 Mon Sep 17 00:00:00 2001 From: Ryan Fleury Date: Fri, 21 Mar 2025 14:30:29 -0700 Subject: [PATCH] snap to thread on stop on all windows, not just focused --- src/raddbg/raddbg_core.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/raddbg/raddbg_core.c b/src/raddbg/raddbg_core.c index fdfc95d5..2001fc54 100644 --- a/src/raddbg/raddbg_core.c +++ b/src/raddbg/raddbg_core.c @@ -15397,6 +15397,7 @@ Z(getting_started) //- rjf: thread finding case RD_CmdKind_FindThread: for(RD_WindowState *ws = rd_state->first_window_state; ws != &rd_nil_window_state; ws = ws->order_next) + RD_RegsScope(.window = ws->cfg_id) { DI_Scope *scope = di_scope_open(); CTRL_Entity *thread = ctrl_entity_from_handle(d_state->ctrl_entity_store, rd_regs()->thread); @@ -15469,6 +15470,7 @@ Z(getting_started) }break; case RD_CmdKind_FindSelectedThread: for(RD_WindowState *ws = rd_state->first_window_state; ws != &rd_nil_window_state; ws = ws->order_next) + RD_RegsScope(.window = ws->cfg_id) { CTRL_Entity *selected_thread = ctrl_entity_from_handle(d_state->ctrl_entity_store, rd_base_regs()->thread); rd_cmd(RD_CmdKind_FindThread,