diff options
author | dgp <dgp@users.sourceforge.net> | 2004-03-01 17:33:20 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2004-03-01 17:33:20 (GMT) |
commit | 533cffb36c60635f6401dd91acb3ce4ca0013d07 (patch) | |
tree | c5f8a52e4ead68a57c0a6f060d407c63f58f6307 /generic/tclCmdMZ.c | |
parent | 754c0852ab501fec0150360756a06d3918a9cc25 (diff) | |
download | tcl-533cffb36c60635f6401dd91acb3ce4ca0013d07.zip tcl-533cffb36c60635f6401dd91acb3ce4ca0013d07.tar.gz tcl-533cffb36c60635f6401dd91acb3ce4ca0013d07.tar.bz2 |
* generic/tclCmdMZ.c (TclCheckInterpTraces): The TIP 62
* generic/tclTest.c (TestcmdtraceCmd): implementation introduced a
* tests/basic.test (basic-39.10): bug by testing the CallFrame
level instead of the iPtr->numLevels level when deciding what traces
created by Tcl_Create(Obj)Trace to call. Added test to expose the
error, and made fix. [Request 462580]
Diffstat (limited to 'generic/tclCmdMZ.c')
-rw-r--r-- | generic/tclCmdMZ.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclCmdMZ.c b/generic/tclCmdMZ.c index 53f9cb1..09c3853 100644 --- a/generic/tclCmdMZ.c +++ b/generic/tclCmdMZ.c @@ -14,7 +14,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclCmdMZ.c,v 1.82.2.10 2004/02/17 04:54:51 hobbs Exp $ + * RCS: @(#) $Id: tclCmdMZ.c,v 1.82.2.11 2004/03/01 17:33:21 dgp Exp $ */ #include "tclInt.h" @@ -4305,7 +4305,7 @@ TclCheckInterpTraces(interp, command, numChars, cmdPtr, code, return(traceCode); } - curLevel = ((iPtr->varFramePtr == NULL) ? 0 : iPtr->varFramePtr->level); + curLevel = iPtr->numLevels; active.nextPtr = iPtr->activeInterpTracePtr; iPtr->activeInterpTracePtr = &active; |