diff options
author | Mark Shannon <mark@hotpy.org> | 2023-08-09 08:30:50 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-09 08:30:50 (GMT) |
commit | 52fbcf61b5a70993c2d32332ff0ad9f369d968d3 (patch) | |
tree | 1b6112302fb001276acbffc7d29644b3f2611810 /Python/legacy_tracing.c | |
parent | 2fb484e62518d15fc9a19565c2ab096bd741219a (diff) | |
download | cpython-52fbcf61b5a70993c2d32332ff0ad9f369d968d3.zip cpython-52fbcf61b5a70993c2d32332ff0ad9f369d968d3.tar.gz cpython-52fbcf61b5a70993c2d32332ff0ad9f369d968d3.tar.bz2 |
GH-107724: Fix the signature of `PY_THROW` callback functions. (GH-107725)
Diffstat (limited to 'Python/legacy_tracing.c')
-rw-r--r-- | Python/legacy_tracing.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Python/legacy_tracing.c b/Python/legacy_tracing.c index 48db517..7774d10 100644 --- a/Python/legacy_tracing.c +++ b/Python/legacy_tracing.c @@ -163,7 +163,7 @@ sys_trace_func2( } static PyObject * -sys_trace_unwind( +sys_trace_func3( _PyLegacyEventHandler *self, PyObject *const *args, size_t nargsf, PyObject *kwnames ) { @@ -445,7 +445,7 @@ _PyEval_SetTrace(PyThreadState *tstate, Py_tracefunc func, PyObject *arg) return -1; } if (set_callbacks(PY_MONITORING_SYS_TRACE_ID, - (vectorcallfunc)sys_trace_func2, PyTrace_CALL, + (vectorcallfunc)sys_trace_func3, PyTrace_CALL, PY_MONITORING_EVENT_PY_THROW, -1)) { return -1; } @@ -470,7 +470,7 @@ _PyEval_SetTrace(PyThreadState *tstate, Py_tracefunc func, PyObject *arg) return -1; } if (set_callbacks(PY_MONITORING_SYS_TRACE_ID, - (vectorcallfunc)sys_trace_unwind, PyTrace_RETURN, + (vectorcallfunc)sys_trace_func3, PyTrace_RETURN, PY_MONITORING_EVENT_PY_UNWIND, -1)) { return -1; } |