Skip to content

Commit 7cff9cb

Browse files
committed
head, not main
1 parent c0e0640 commit 7cff9cb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Modules/_remote_debugging/threads.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@ iterate_threads(
3434

3535
if (0 > _Py_RemoteDebug_PagedReadRemoteMemory(
3636
&unwinder->handle,
37-
unwinder->interpreter_addr + (uintptr_t)unwinder->debug_offsets.interpreter_state.threads_main,
37+
unwinder->interpreter_addr + (uintptr_t)unwinder->debug_offsets.interpreter_state.threads_head,
3838
sizeof(void*),
3939
&thread_state_addr))
4040
{
41-
set_exception_cause(unwinder, PyExc_RuntimeError, "Failed to read main thread state");
41+
set_exception_cause(unwinder, PyExc_RuntimeError, "Failed to read threads head");
4242
return -1;
4343
}
4444

0 commit comments

Comments
 (0)