on new debug session: close all loaded debug infos, assume none need to stick around

This commit is contained in:
Ryan Fleury
2026-05-12 09:38:06 -07:00
parent 15a2d5658f
commit 641a7c8b30
2 changed files with 15 additions and 3 deletions
+12
View File
@@ -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);