oops; fix incorrect usage of thread instead of process entity

This commit is contained in:
Ryan Fleury
2024-09-08 13:16:57 -07:00
parent 6cf0c7ee92
commit dfe0c17b89
+1 -1
View File
@@ -2437,7 +2437,7 @@ d_trap_net_from_thread__step_into_line(Arena *arena, CTRL_Entity *thread)
Arch arch = thread->arch;
U64 ip_vaddr = ctrl_query_cached_rip_from_thread(d_state->ctrl_entity_store, thread->machine_id, thread->handle);
CTRL_Entity *process = ctrl_entity_ancestor_from_kind(thread, CTRL_EntityKind_Process);
CTRL_Entity *module = ctrl_module_from_process_vaddr(thread, ip_vaddr);
CTRL_Entity *module = ctrl_module_from_process_vaddr(process, ip_vaddr);
DI_Key dbgi_key = ctrl_dbgi_key_from_module(module);
// rjf: ip => line vaddr range