first pass at watch expr location locks - still some jank around the edges due to eval incompleteness, but works for basic cases

This commit is contained in:
Ryan Fleury committed 2026-07-28 11:18:00 -07:00
1 parent ae8960d563
commit 0fe5aa5a43
11 files changed
+258 -149

No files matched your search

+17
View File
@@ -1225,9 +1225,26 @@ d_modules_from_dbgi_key(Arena *arena, DI_Key dbgi_key)
return list;
}
internal D_Entity *
d_process_from_id(U64 id)
{
// TODO(rjf): @multimachine need machine ID here?
D_Entity *process = &d_entity_nil;
D_EntityArray processes = d_entity_array_from_kind(D_EntityKind_Process);
for EachIndex(idx, processes.count)
{
if(processes.v[idx]->id == id)
{
process = processes.v[idx];
}
}
return process;
}
internal D_Entity *
d_thread_from_id(U64 id)
{
// TODO(rjf): @multimachine need machine ID here?
D_Entity *thread = &d_entity_nil;
D_EntityArray threads = d_entity_array_from_kind(D_EntityKind_Thread);
for EachIndex(idx, threads.count)