]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix tracing
authorKen Jin <28750310+Fidget-Spinner@users.noreply.github.com>
Sat, 18 Oct 2025 19:54:56 +0000 (20:54 +0100)
committerKen Jin <28750310+Fidget-Spinner@users.noreply.github.com>
Sat, 18 Oct 2025 19:54:56 +0000 (20:54 +0100)
Python/ceval_macros.h

index 557757f8a259a13767fb45d04f8e1c3e5657092e..52dd8f7c3acae010b1172bc5b9faa7ce07733df8 100644 (file)
@@ -227,6 +227,9 @@ do { \
 
 #define TRACING_DISPATCH() \
     { \
+        if (tstate->c_tracefunc || tstate->c_profilefunc) { \
+            DISPATCH(); \
+        } \
         assert(frame->stackpointer == NULL); \
         RECORD_TRACE_NO_DISPATCH(); \
         NEXTOPARG(); \