summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2012-02-06 18:54:08 (GMT)
committerdgp <dgp@users.sourceforge.net>2012-02-06 18:54:08 (GMT)
commitb0b7c57736c4ec1e0cbb46da278f135136395019 (patch)
tree81b80ba8be7737c8da831ecba22d9cb063cdca15 /generic
parentd96696676a3d3487daa023f4f916533b06d4c25e (diff)
downloadtcl-b0b7c57736c4ec1e0cbb46da278f135136395019.zip
tcl-b0b7c57736c4ec1e0cbb46da278f135136395019.tar.gz
tcl-b0b7c57736c4ec1e0cbb46da278f135136395019.tar.bz2
3485022 Disable ensemble subcommand compile inside a Tcl_Create*Trace().
Diffstat (limited to 'generic')
-rw-r--r--generic/tclCompCmds.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/generic/tclCompCmds.c b/generic/tclCompCmds.c
index 76181ee..1f8bd21 100644
--- a/generic/tclCompCmds.c
+++ b/generic/tclCompCmds.c
@@ -6326,7 +6326,8 @@ TclCompileEnsemble(
cmdPtr = (Command *) Tcl_GetCommandFromObj(interp, targetCmdObj);
TclDecrRefCount(targetCmdObj);
if (cmdPtr == NULL || cmdPtr->compileProc == NULL
- || cmdPtr->flags & CMD_HAS_EXEC_TRACES) {
+ || cmdPtr->flags & CMD_HAS_EXEC_TRACES
+ || ((Interp *)interp)->flags & DONT_COMPILE_CMDS_INLINE) {
/*
* Maps to an undefined command or a command without a compiler.
* Cannot compile.