mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-08-14 17:28:07 +00:00
on new debug session: close all loaded debug infos, assume none need to stick around
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user