Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Use the right variable name based on the field we are trying read
  • Loading branch information
abhinav-upadhyay authored May 5, 2024
commit ddcf8f3f614d224f58b709ba143278201673e0ab
4 changes: 2 additions & 2 deletions Modules/_testexternalinspection.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down