diff options
author | dgp <dgp@noemail.net> | 2004-03-01 17:33:19 (GMT) |
---|---|---|
committer | dgp <dgp@noemail.net> | 2004-03-01 17:33:19 (GMT) |
commit | 14207afbf94cac35daaca78fe45b98418fe9d134 (patch) | |
tree | c5f8a52e4ead68a57c0a6f060d407c63f58f6307 /generic/tclCmdMZ.c | |
parent | 115b61d4a6ca343e674563434e680ce93dd05d5b (diff) | |
download | tcl-14207afbf94cac35daaca78fe45b98418fe9d134.zip tcl-14207afbf94cac35daaca78fe45b98418fe9d134.tar.gz tcl-14207afbf94cac35daaca78fe45b98418fe9d134.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]
FossilOrigin-Name: af732ef905064138b979d8b449ff93b52626e8db
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; |