diff options
Diffstat (limited to 'generic')
-rw-r--r-- | generic/tclTrace.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/generic/tclTrace.c b/generic/tclTrace.c index c79b9ff..2e38086 100644 --- a/generic/tclTrace.c +++ b/generic/tclTrace.c @@ -1124,16 +1124,15 @@ Tcl_TraceCommand( tracePtr->refCount = 1; cmdPtr->tracePtr = tracePtr; if (tracePtr->flags & TCL_TRACE_ANY_EXEC) { - cmdPtr->flags |= CMD_HAS_EXEC_TRACES; - /* * Bug 3484621: up the interp's epoch if this is a BC'ed command */ - if (cmdPtr->compileProc != NULL) { + if ((cmdPtr->compileProc != NULL) && !(cmdPtr->flags & CMD_HAS_EXEC_TRACES)){ Interp *iPtr = (Interp *) interp; iPtr->compileEpoch++; } + cmdPtr->flags |= CMD_HAS_EXEC_TRACES; } |