https://github.com/python/cpython/commit/26bab423fb6e08f9df23c5c8f55e3d019150c454 commit: 26bab423fb6e08f9df23c5c8f55e3d019150c454 branch: main author: Abhinav Upadhyay <[email protected]> committer: pablogsal <[email protected]> date: 2024-05-07T14:50:41Z summary:
bpo-115773: Use the right variable name based on the field we are trying read (#118591) Co-authored-by: Pablo Galindo Salgado <[email protected]> files: M Modules/_testexternalinspection.c diff --git a/Modules/_testexternalinspection.c b/Modules/_testexternalinspection.c index 696c00c237dccf..2a665affb5e7f8 100644 --- a/Modules/_testexternalinspection.c +++ b/Modules/_testexternalinspection.c @@ -553,12 +553,12 @@ get_stack_trace(PyObject* self, PyObject* args) if (bytes_read == -1) { return NULL; } - off_t thread_state_list_head = local_debug_offsets.runtime_state.interpreters_head; + off_t interpreter_state_list_head = local_debug_offsets.runtime_state.interpreters_head; void* address_of_interpreter_state; bytes_read = read_memory( pid, - (void*)(runtime_start_address + thread_state_list_head), + (void*)(runtime_start_address + interpreter_state_list_head), sizeof(void*), &address_of_interpreter_state); if (bytes_read == -1) { _______________________________________________ Python-checkins mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/python-checkins.python.org/ Member address: [email protected]
