mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
[3.10] GH-96864: Check for error between line and opcode events (GH-96969)
(cherry picked from commit c10e33ac11
)
This commit is contained in:
parent
96739bccf2
commit
21b5af9072
3 changed files with 17 additions and 1 deletions
|
@ -5512,7 +5512,7 @@ maybe_call_line_trace(Py_tracefunc func, PyObject *obj,
|
|||
}
|
||||
}
|
||||
/* Always emit an opcode event if we're tracing all opcodes. */
|
||||
if (frame->f_trace_opcodes) {
|
||||
if (frame->f_trace_opcodes && result == 0) {
|
||||
result = call_trace(func, obj, tstate, frame, trace_info, PyTrace_OPCODE, Py_None);
|
||||
}
|
||||
return result;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue