dbg_engine: shift thread register reads / process memory reads -> abstraction layer, rather than directly calling into demon; cache crash dump info, like thread info & memory ranges; implement thread reg reads & memory reads for dumps by using this acceleration structure when we have a dump handle, instead of regular demon reads.

This commit is contained in:
Ryan Fleury
2026-05-18 14:51:17 -07:00
parent 463a4f8565
commit 4840b46b84
23 changed files with 1035 additions and 401 deletions
+6
View File
@@ -80,6 +80,9 @@ d_init(void)
}
d_ctrl_state->ctrl_thread_log = log_alloc();
d_ctrl_state->ctrl_thread = thread_launch(d_ctrl_thread__entry_point, 0);
d_ctrl_state->dump_cache.slots_count = 64;
d_ctrl_state->dump_cache.slots = push_array(arena, D_DumpSlot, d_ctrl_state->dump_cache.slots_count);
d_ctrl_state->dump_cache.stripes = stripe_array_alloc(arena);
}
//- rjf: set up user state
@@ -111,4 +114,7 @@ d_init(void)
// rjf: set up run state
d_user_state->ctrl_last_run_arena = arena_alloc();
}
//- rjf: select user state's entity context
d_select_entity_ctx(&d_user_state->ctrl_entity_store->ctx);
}