GH-106898: Add the exception as an argument to the PY_UNWIND event callback function. (GH-107347)

This commit is contained in:
Mark Shannon
2023-07-27 15:47:33 +01:00
committed by GitHub
parent 9a7204b86b
commit ac7a0f858a
4 changed files with 29 additions and 6 deletions

View File

@@ -1987,7 +1987,7 @@ monitor_unwind(PyThreadState *tstate,
if (no_tools_for_event(tstate, frame, PY_MONITORING_EVENT_PY_UNWIND)) {
return;
}
_Py_call_instrumentation_exc0(tstate, PY_MONITORING_EVENT_PY_UNWIND, frame, instr);
do_monitor_exc(tstate, frame, instr, PY_MONITORING_EVENT_PY_UNWIND);
}