summaryrefslogtreecommitdiffstats
path: root/generic/tclTrace.c
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2004-03-01 17:33:45 (GMT)
committerdgp <dgp@users.sourceforge.net>2004-03-01 17:33:45 (GMT)
commit35da23f80f35ffde79b635c74c0a31b1a6b9b181 (patch)
tree86e6a76aafdf522e161a414c96b16659f1cf2956 /generic/tclTrace.c
parent23b1014c0fb8387895fe3b847999ea8b17572bee (diff)
downloadtcl-35da23f80f35ffde79b635c74c0a31b1a6b9b181.zip
tcl-35da23f80f35ffde79b635c74c0a31b1a6b9b181.tar.gz
tcl-35da23f80f35ffde79b635c74c0a31b1a6b9b181.tar.bz2
* generic/tclTrace.c (TclCheckInterpTraces): The TIP 62
* generic/tclTest.c (TestcmdtraceCmd): implementation introduced a * tests/trace.test (trace-29.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/tclTrace.c')
-rw-r--r--generic/tclTrace.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclTrace.c b/generic/tclTrace.c
index dd2422a..66b9760 100644
--- a/generic/tclTrace.c
+++ b/generic/tclTrace.c
@@ -11,7 +11,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclTrace.c,v 1.8 2004/02/17 04:56:01 hobbs Exp $
+ * RCS: @(#) $Id: tclTrace.c,v 1.9 2004/03/01 17:33:45 dgp Exp $
*/
#include "tclInt.h"
@@ -1529,7 +1529,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;