Overview
| Artifact ID: | dcbe51dd087b9953915f430005eda5ac3fb8e023 |
|---|---|
| Ticket: | 2868499fffffffffffffffffffffffffffffffff
TIP #348: Substituted errorStack |
| User & Date: | ferrieux on 2010-04-01 00:11:59 |
Changes
- icomment:
Summary from talk on the chat: To get to the "inner context" (ie the just-executed command/instruction when the error first bursts, in the first T_LCI call in a row), two families of cases exist: - error generated by a bytecode instruction: based on a stack arity table (+ special casing of INST_EXPAND_*) we can reconstruct the objv[] out of the stack contents (not yet popped). What's nice is that TEBC has a single call site of T_LCI. - error generated in one of the many non-compiled error cases from tclBasic.c. These are trickier since there is no uniform way of reaching the objv[]. In some cases we might fall back to just displaying the static source. I believe the compiled case is top priority, because it applies to most code anyway. (would have _loved_ the arity suffix like INST_LOAD_SCALAR1 to be generalized...) - login: "ferrieux"
- mimetype: "text/plain"
- username: "ferrieux"