mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-09-24 02:00:05 +00:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user