From 641a7c8b3040708649553807701454daecbd785e Mon Sep 17 00:00:00 2001 From: Ryan Fleury Date: Tue, 12 May 2026 09:38:06 -0700 Subject: [PATCH] on new debug session: close all loaded debug infos, assume none need to stick around --- src/raddbg/raddbg_core.c | 12 ++++++++++++ src/raddbg/raddbg_main.c | 6 +++--- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/src/raddbg/raddbg_core.c b/src/raddbg/raddbg_core.c index fdfd46cc..fe8be49c 100644 --- a/src/raddbg/raddbg_core.c +++ b/src/raddbg/raddbg_core.c @@ -16387,6 +16387,18 @@ rd_frame(void) switch(evt->kind) { default:{}break; + case D_EventKind_NewProc: + { + D_EntityArray all_processes = d_entity_array_from_kind(&d_user_state->ctrl_entity_store->ctx, D_EntityKind_Process); + if(all_processes.count == 1) + { + CFG_NodePtrList dbg_infos = cfg_node_top_level_list_from_string(scratch.arena, str8_lit("debug_info")); + for EachNode(n, CFG_NodePtrNode, dbg_infos.first) + { + cfg_node_release(rd_state->cfg, n->v); + } + } + }break; case D_EventKind_NewModule: { D_Entity *module = d_entity_from_handle(&d_user_state->ctrl_entity_store->ctx, evt->entity); diff --git a/src/raddbg/raddbg_main.c b/src/raddbg/raddbg_main.c index b04dd7e5..0823f23a 100644 --- a/src/raddbg/raddbg_main.c +++ b/src/raddbg/raddbg_main.c @@ -6,13 +6,13 @@ // // [ ] "autos" collection, which can be evaluated // [ ] show "autos" inline in source code near thread? -// [ ] step out of scopes / loops // [ ] memory_size(...) view for quickly evaluating memory sizes // [ ] value coloring view in watch window, so you can quickly scroll & see values outside of a threshold +// [x] step out of scopes / loops // -// [ ] asan pass -// [ ] policy for closing debug info which is no longer relevant? +// [x] policy for closing debug info which is no longer relevant? // [ ] codebase-internal barrier impl (win7/linux support) +// [ ] asan pass // [ ] external window focusing bugs // [ ] PDB -> RDI conversion memory usage // [x] killing/restarting thread performance (#780)