summaryrefslogtreecommitdiffstats
path: root/Modules/_testexternalinspection.c
diff options
context:
space:
mode:
authorAbhinav Upadhyay <er.abhinav.upadhyay@gmail.com>2024-05-07 14:50:41 (GMT)
committerGitHub <noreply@github.com>2024-05-07 14:50:41 (GMT)
commit26bab423fb6e08f9df23c5c8f55e3d019150c454 (patch)
treebea320de4d5227aaa0aa7bf1a2f4591cbce4ac84 /Modules/_testexternalinspection.c
parente5413ec7831608f6cb4f39d805785cb1d7b67702 (diff)
downloadcpython-26bab423fb6e08f9df23c5c8f55e3d019150c454.zip
cpython-26bab423fb6e08f9df23c5c8f55e3d019150c454.tar.gz
cpython-26bab423fb6e08f9df23c5c8f55e3d019150c454.tar.bz2
bpo-115773: Use the right variable name based on the field we are trying read (#118591)
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Diffstat (limited to 'Modules/_testexternalinspection.c')
-rw-r--r--Modules/_testexternalinspection.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_testexternalinspection.c b/Modules/_testexternalinspection.c
index 696c00c..2a665af 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) {