Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 726e8e8 commit 756e7d1Copy full SHA for 756e7d1
1 file changed
Modules/_remote_debugging/threads.c
@@ -405,7 +405,8 @@ unwind_stack_for_thread(
405
goto error;
406
}
407
// Update last_profiled_frame for next sample
408
- uintptr_t lpf_addr = *current_tstate + unwinder->debug_offsets.thread_state.last_profiled_frame;
+ uintptr_t lpf_addr =
409
+ *current_tstate + (uintptr_t)unwinder->debug_offsets.thread_state.last_profiled_frame;
410
if (_Py_RemoteDebug_WriteRemoteMemory(&unwinder->handle, lpf_addr,
411
sizeof(uintptr_t), &frame_addr) < 0) {
412
PyErr_Clear(); // Non-fatal
0 commit comments