restart path, breakpoint vaddr editing path

This commit is contained in:
Ryan Fleury
2024-10-14 15:10:44 -07:00
parent 1bf01c790b
commit eadd49072a
3 changed files with 11 additions and 22 deletions
+1 -21
View File
@@ -2308,28 +2308,8 @@ d_tick(Arena *arena, D_TargetArray *targets, D_BreakpointArray *breakpoints, D_P
}break;
case D_CmdKind_Restart:
{
// rjf: kill all
d_cmd(D_CmdKind_KillAll);
#if 0 // TODO(rjf): @msgs
// rjf: gather targets corresponding to all launched processes
RD_EntityList targets = {0};
{
RD_EntityList processes = rd_query_cached_entity_list_with_kind(RD_EntityKind_Process);
for(RD_EntityNode *n = processes.first; n != 0; n = n->next)
{
RD_Entity *process = n->entity;
RD_Entity *target = rd_entity_from_handle(process->entity_handle);
if(!rd_entity_is_nil(target))
{
rd_entity_list_push(scratch.arena, &targets, target);
}
}
}
// rjf: re-launch targets
d_cmd(D_CmdKind_LaunchAndRun, .entity_list = rd_handle_list_from_entity_list(scratch.arena, targets));
#endif
d_cmd(D_CmdKind_LaunchAndRun);
}break;
case D_CmdKind_StepInto:
case D_CmdKind_StepOver:
+9
View File
@@ -2506,6 +2506,15 @@ rd_eval_space_write(void *u, E_Space space, void *in, Rng1U64 range)
}
StringMemberCase(address_location)
{
U64 vaddr = 0;
if(try_u64_from_str8_c_rules(str8_cstring_capped(in, (U8 *)in + 4096), &vaddr))
{
RD_Entity *loc = rd_entity_child_from_kind_or_alloc(entity, RD_EntityKind_Location);
rd_entity_equip_vaddr(loc, vaddr);
rd_entity_equip_name(loc, str8_zero());
loc->flags &= ~RD_EntityFlag_HasTextPoint;
result = 1;
}
}
StringMemberCase(function_location)
{
+1 -1
View File
@@ -5,7 +5,6 @@
//~ rjf: 0.9.12 TODO notes
//
// [ ] remainder of @msgs pass:
// [ ] entity listers - kill-specific-process, etc.
// [ ] new `restart processes` path
// [ ] remainder of @msgs
//
@@ -521,6 +520,7 @@
// [x] new universal ctx menu, hover, tooltips systems
// [x] `switch` replacement (recent files history)
// [x] resolving name as file or #include
// [x] entity listers - kill-specific-process, etc.
////////////////////////////////
//~ rjf: Build Options