Overview
| Artifact ID: | 3edf84ef6d274dff26cd851436e52cf67b994dc8 |
|---|---|
| Ticket: | 2933089fffffffffffffffffffffffffffffffff
info frame incorrect source type results |
| User & Date: | andreas_kupries on 2010-01-21 06:58:25 |
Changes
- icomment:
At first glance I thought that it is calling of get_info_frame through an execution trace which is the problem ... Doesn't seem to be the case however. A comparison of 8.4.19, 8.5.8, and 8.6 CVS head further shows that 8.6 is OK. It shows the correct line number for the uh-oh case, i.e. 35 ... And that brought me on the right track. The 'else' branches of all the if conditions are identical, character for character. I.e. they are the same literal, and the byte code compiler maps them to a single Tcl_Obj value in the generated bytecode. Why is that important ? Because some of the #280 info is tacked on the Tcl_Obj, and the older versions of the core then get confused. When I fixed the tracking of continuation lines in the CVS head (8.6+) I also did some literal-sharing work ... TclCompileObj, in tclExecute.c ... Hm. I thought there (per my comments) that 8.5 would not need such a fix. It seems I am mistaken. I will have a look, see if my 8.6 work i nthat area can be back-ported easily. A workaround for you is to change one of the else branches, for example by adding a space somewhere ... Then the strings are not identical and are not mapped to a single Tcl_Obj, and the line-counting logic gets it right. Side note: $$y ? That is very brittle Tcl, not idiomatic. See http://wiki.tcl.tk/8662 for a discussion of the subject.
- login: "andreas_kupries"
- mimetype: "text/plain"
- username: "andreas_kupries"