summaryrefslogtreecommitdiffstats
path: root/generic/tclCompile.c
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2016-06-16 17:15:28 (GMT)
committerdgp <dgp@users.sourceforge.net>2016-06-16 17:15:28 (GMT)
commit248348175af7704dabfbd15c9f1b9cb0645db450 (patch)
treeb2f1719bec6d4529e978a19c4f3f74201d60b816 /generic/tclCompile.c
parentc96e7bd80446fc3b4804b432ba53e8e31c980aef (diff)
parent8824470ed0704024b804da2d301cf0d05a63ee04 (diff)
downloadtcl-248348175af7704dabfbd15c9f1b9cb0645db450.zip
tcl-248348175af7704dabfbd15c9f1b9cb0645db450.tar.gz
tcl-248348175af7704dabfbd15c9f1b9cb0645db450.tar.bz2
[4b61afd660] Allow [info frame] to record line info for substituted command names.
Diffstat (limited to 'generic/tclCompile.c')
-rw-r--r--generic/tclCompile.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/generic/tclCompile.c b/generic/tclCompile.c
index 2042bcc..b1b67a8 100644
--- a/generic/tclCompile.c
+++ b/generic/tclCompile.c
@@ -3276,8 +3276,10 @@ EnterCmdWordData(
TclAdvanceLines(&wordLine, last, tokenPtr->start);
TclAdvanceContinuations(&wordLine, &wordNext,
tokenPtr->start - envPtr->source);
+ /* See Ticket 4b61afd660 */
wwlines[wordIdx] =
- (TclWordKnownAtCompileTime(tokenPtr, NULL) ? wordLine : -1);
+ ((wordIdx == 0) || TclWordKnownAtCompileTime(tokenPtr, NULL))
+ ? wordLine : -1;
ePtr->line[wordIdx] = wordLine;
ePtr->next[wordIdx] = wordNext;
last = tokenPtr->start;