Overview
| Artifact ID: | 74ca5f065cf33defa8a2de12939ac991bdf38471 |
|---|---|
| Ticket: | 219236ffffffffffffffffffffffffffffffffff
Tcl_EvalEx() passes the wrong command size to EvalObjv() |
| User & Date: | nobody on 2000-10-26 05:03:58 |
Changes
- assignee changed to: "nobody"
- cmimetype changed to: "text/plain"
- comment changed to:
OriginalBugID: 4729 Bug Version: 8.3 SubmitDate: '2000-03-30' LastModified: '2000-04-03' Severity: MED Status: Assigned Submitter: techsupp ChangedBy: hobbs OS: Solaris FixedDate: '2000-10-25' ClosedDate: '2000-10-25' Name: Yu Zhang CVS: * RCS: @(#) $Id: tclParse.c,v 1.13 1999/11/10 02:51:57 hobbs Exp $ ObservedBehavior: I tried to integrate Don Libes tcl-debugger from expect5.31 with Tcl8.3.0 and found that all debugger functionality works except for breakpoint by pattern match. The reason of this problem is: Tcl_EvalEx() passes bytesLeft instead of parse.commandSize as the size of the command just parsed to EvalObjv(). EvalObjv() will call trace functions, including the debugger_trap() function, passing them the command string. Due to the wrong command size, the command string debugger_trap() gets is wrong, causing bogus breakpoints. tclParse.c:1393 is the line in question. The change passes the test suites, but maybe only because it only affects C command traces, in TclX and Expect. Looking at the structure of Tcl_Parse, I would think that the correct value is actually parse.commandStart + parse.commandSize because you have to account for possible comments. -- 03/30/2000 hobbs - foundin changed to: "obsolete: 8.3"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "nobody"
- subsystem changed to: "10. Objects"
- title changed to:
Tcl_EvalEx() passes the wrong command size to EvalObjv()
- type changed to: "Bug"