From 1981f500290b6410a2ee06754eed6f4a8a28c70a Mon Sep 17 00:00:00 2001 From: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com> Date: Sat, 18 Oct 2025 20:54:56 +0100 Subject: [PATCH] Fix tracing --- Python/ceval_macros.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Python/ceval_macros.h b/Python/ceval_macros.h index 557757f8a259..52dd8f7c3aca 100644 --- a/Python/ceval_macros.h +++ b/Python/ceval_macros.h @@ -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(); \ -- 2.47.3