From: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com> Date: Sat, 18 Oct 2025 19:54:56 +0000 (+0100) Subject: Fix tracing X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1981f500290b6410a2ee06754eed6f4a8a28c70a;p=thirdparty%2FPython%2Fcpython.git Fix tracing --- 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(); \