diff options
author | Brandt Bucher <brandtbucher@microsoft.com> | 2024-07-29 21:51:19 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-29 21:51:19 (GMT) |
commit | 55554fd2157cbf52caf6c01a64d81b948c41e82c (patch) | |
tree | 92a84fe2fb2f371cf472e434a162510c06f9c54d /Python/ceval.c | |
parent | 56340ee8b17f703d6add3e8bb7c0f85af88a5548 (diff) | |
download | cpython-55554fd2157cbf52caf6c01a64d81b948c41e82c.zip cpython-55554fd2157cbf52caf6c01a64d81b948c41e82c.tar.gz cpython-55554fd2157cbf52caf6c01a64d81b948c41e82c.tar.bz2 |
[3.13] GH-116090: Fire RAISE events from _FOR_ITER_TIER_TWO (GH-122419)
(cherry picked from commit 15d4cd096758ca089c6bd6ed808c34cca676d9bb)
Diffstat (limited to 'Python/ceval.c')
-rw-r--r-- | Python/ceval.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/Python/ceval.c b/Python/ceval.c index bbd8a24..866328e 100644 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -223,9 +223,6 @@ maybe_lltrace_resume_frame(_PyInterpreterFrame *frame, _PyInterpreterFrame *skip #endif -static void monitor_raise(PyThreadState *tstate, - _PyInterpreterFrame *frame, - _Py_CODEUNIT *instr); static void monitor_reraise(PyThreadState *tstate, _PyInterpreterFrame *frame, _Py_CODEUNIT *instr); @@ -873,7 +870,7 @@ error: PyTraceBack_Here(f); } } - monitor_raise(tstate, frame, next_instr-1); + _PyEval_MonitorRaise(tstate, frame, next_instr-1); exception_unwind: { /* We can't use frame->instr_ptr here, as RERAISE may have set it */ @@ -2184,8 +2181,8 @@ no_tools_for_local_event(PyThreadState *tstate, _PyInterpreterFrame *frame, int } } -static void -monitor_raise(PyThreadState *tstate, _PyInterpreterFrame *frame, +void +_PyEval_MonitorRaise(PyThreadState *tstate, _PyInterpreterFrame *frame, _Py_CODEUNIT *instr) { if (no_tools_for_global_event(tstate, PY_MONITORING_EVENT_RAISE)) { |