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);
+3 -3
View File
@@ -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)