From e30c40fbca9d9de8c284fa8ce2e958973e6fe387 Mon Sep 17 00:00:00 2001 From: Alexandre Perez Date: Wed, 12 Apr 2023 10:55:23 -0700 Subject: [PATCH] Use PyObject_VectorcallDict if _PyObject_FastCallDict is not available --- .../pydevd/pydevd_attach_to_process/common/py_settrace.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/common/py_settrace.hpp b/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/common/py_settrace.hpp index ba6c25fb3..eed23f25a 100644 --- a/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/common/py_settrace.hpp +++ b/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/common/py_settrace.hpp @@ -132,7 +132,8 @@ int InternalSetSysTraceFunc( DEFINE_PROC(pyEval_CallObjectWithKeywords, PyEval_CallObjectWithKeywords*, "PyEval_CallObjectWithKeywords", 532); if(pyObject_FastCallDict == nullptr) { - DEFINE_PROC_NO_CHECK(pyObject_FastCallDict, _PyObject_FastCallDict*, "PyObject_VectorcallDict", 533); + DEFINE_PROC_NO_CHECK(pyObject_VectorcallDict, _PyObject_FastCallDict*, "PyObject_VectorcallDict", 533); + pyObject_FastCallDict = pyObject_VectorcallDict; } if(pyObject_FastCallDict == nullptr) {