Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2006-11-29
23:55 • Closed ticket [1571568fff]: TIP 280 extended 'info frame' plus 7 o... artifact: f44086639a user: andreas_kupries
17:50 • Ticket [1571568fff]: 4 changes artifact: a3d093a23e user: nobody
04:21 • Add attachment 280_85.patch_final.diff.gz to ticket [1571568fffffffff|1... artifact: 772e5db655 user: andreas_kupries
04:21 • Ticket [1571568fff] TIP 280 extended 'info frame' status still Ope... artifact: 127d1ad14f user: andreas_kupries
04:20 • Add attachment 280_84.patch_final.diff.gz to ticket [1571568fffffffff|1... artifact: 7a7d47f2dc user: andreas_kupries
04:20 • Ticket [1571568fff] TIP 280 extended 'info frame' status still Ope... artifact: d993635654 user: andreas_kupries
2006-11-25
03:28 • Ticket [1571568fff]: 4 changes artifact: 27f6d2bad3 user: andreas_kupries
03:28 • Add attachment 280_85.patch_base5.diff.gz to ticket [1571568fffffffff|1... artifact: e7269870fc user: andreas_kupries
03:28 • Ticket [1571568fff] TIP 280 extended 'info frame' status still Ope... artifact: 5a842eea13 user: andreas_kupries
03:26 • Ticket [1571568fff]: 4 changes artifact: 0be7f0a2e4 user: andreas_kupries
03:26 • Add attachment 280_85.patch_base5.diff.gz to ticket [1571568fffffffff|1... artifact: 8268040c01 user: andreas_kupries
03:26 • Add attachment 280_84.patch_base9.diff.gz to ticket [1571568fffffffff|1... artifact: 5bd3838c50 user: andreas_kupries
03:26 • Ticket [1571568fff] TIP 280 extended 'info frame' status still Ope... artifact: 6a22e066e3 user: andreas_kupries
2006-11-22
03:26 • Ticket [1571568fff]: 4 changes artifact: c23a7f66ff user: andreas_kupries
2006-11-02
14:47 • Ticket [1571568fff]: 4 changes artifact: edc3aaac92 user: ecky-l
2006-10-31
03:26 • Add attachment 280_85.patch_base4.diff.gz to ticket [1571568fffffffff|1... artifact: 0e1d6a5dc4 user: andreas_kupries
03:26 • Ticket [1571568fff] TIP 280 extended 'info frame' status still Ope... artifact: 6b86ab8700 user: andreas_kupries
03:26 • Ticket [1571568fff]: 4 changes artifact: 2ee3d05342 user: andreas_kupries
2006-10-28
07:35 • Add attachment 280_85.patch_base3.diff.gz to ticket [1571568fffffffff|1... artifact: 296cdca9ad user: andreas_kupries
07:35 • Ticket [1571568fff] TIP 280 extended 'info frame' status still Ope... artifact: b4378399f9 user: andreas_kupries
2006-10-27
06:20 • Ticket [1571568fff]: 4 changes artifact: 08160cecf2 user: andreas_kupries
06:20 • Add attachment 280_85.patch_base2.diff.gz to ticket [1571568fffffffff|1... artifact: e0409b89dc user: andreas_kupries
01:40 • Ticket [1571568fff] TIP 280 extended 'info frame' status still Ope... artifact: 910c5864e5 user: andreas_kupries
01:40 • Add attachment 280_85.patch_base1.diff.gz to ticket [1571568fffffffff|1... artifact: 4b16604204 user: andreas_kupries
01:36 • Ticket [1571568fff] TIP 280 extended 'info frame' status still Ope... artifact: 665d4590fa user: andreas_kupries
01:36 • Add attachment 280_84.patch_base8.diff.gz to ticket [1571568fffffffff|1... artifact: 57d293d267 user: andreas_kupries
2006-10-26
06:07 • Ticket [1571568fff] TIP 280 extended 'info frame' status still Ope... artifact: 6cd612fe5f user: andreas_kupries
06:07 • Add attachment 280_85.patch_base0.diff.gz to ticket [1571568fffffffff|1... artifact: dac27993a0 user: andreas_kupries
06:07 • Ticket [1571568fff] TIP 280 extended 'info frame' status still Ope... artifact: 8c58961e93 user: andreas_kupries
06:03 • Ticket [1571568fff]: 4 changes artifact: 96e65bf359 user: dkf
05:44 • Add attachment 280_84.patch_base7.diff.gz to ticket [1571568fffffffff|1... artifact: 2c97bb7b40 user: andreas_kupries
05:44 • Ticket [1571568fff] TIP 280 extended 'info frame' status still Ope... artifact: 4e11250644 user: andreas_kupries
2006-10-24
07:07 • Ticket [1571568fff]: 4 changes artifact: ab419dfe19 user: andreas_kupries
06:55 • Ticket [1571568fff]: 4 changes artifact: 594fd97e3c user: msofer
06:42 • Ticket [1571568fff]: 4 changes artifact: 294634329a user: andreas_kupries
06:42 • Add attachment 280_84.patch_base6.diff.gz to ticket [1571568fffffffff|1... artifact: 71de7d46ab user: andreas_kupries
2006-10-20
07:49 • Ticket [1571568fff] TIP 280 extended 'info frame' status still Ope... artifact: f92d220885 user: andreas_kupries
07:49 • Add attachment 280_84.patch_base5.diff.gz to ticket [1571568fffffffff|1... artifact: 529f5dbd9e user: andreas_kupries
04:30 • Ticket [1571568fff] TIP 280 extended 'info frame' status still Ope... artifact: 200034e9a2 user: andreas_kupries
04:30 • Add attachment 280_84.patch_base4.diff.gz to ticket [1571568fffffffff|1... artifact: 09e94d9e07 user: andreas_kupries
03:54 • Add attachment 280_84.patch_base3.diff.gz to ticket [1571568fffffffff|1... artifact: cb7a9cb07c user: andreas_kupries
03:54 • Ticket [1571568fff] TIP 280 extended 'info frame' status still Ope... artifact: c2521ab587 user: andreas_kupries
03:54 • Ticket [1571568fff]: 4 changes artifact: 6eaf475de1 user: andreas_kupries
2006-10-19
23:58 • Add attachment 280_84.patch_base2.diff.gz to ticket [1571568fffffffff|1... artifact: 37f204d9b2 user: andreas_kupries
23:58 • Ticket [1571568fff] TIP 280 extended 'info frame' status still Ope... artifact: b5ddaafad5 user: andreas_kupries
03:48 • Add attachment 280_84.patch_base.diff.gz to ticket [1571568fffffffff|15... artifact: 8c8dd9895c user: andreas_kupries
03:48 • Ticket [1571568fff] TIP 280 extended 'info frame' status still Ope... artifact: bbe2aed62b user: andreas_kupries
2006-10-07
05:31 • Ticket [1571568fff]: 3 changes artifact: c240149c74 user: dkf
2006-10-06
22:22 • Ticket [1571568fff]: 1 change artifact: 028553f732 user: andreas_kupries
2006-10-05
23:43 • Ticket [1571568fff]: 4 changes artifact: 53840ac224 user: andreas_kupries
23:43 • Add attachment 211_84_base2.diff.gz to ticket [1571568fffffffff|1571568... artifact: 11177fd382 user: andreas_kupries
16:43 • New ticket [1571568fff] TIP 211ng extended 'info frame'. artifact: c8effaa1d3 user: andreas_kupries

[TIP 280] extended 'info frame'

Closed / Accepted1571568fffffffffffffffffffffffffffffffffCreated 20 years agoUpdated 20 years ago
Descriptionplain2006-10-05 16:43:00
Implementation of 'info frame' going beyond #211.
Derived from the 'info linenum' of #86.
andreas_kupriesplain2006-10-05 23:43:00
File Added - 196736: 211_84_base2.diff.gz
andreas_kupries Ticket [1571568fff]: 1 change [History diff]2006-10-06 22:22:05
dkf Ticket [1571568fff]: 3 changes [History diff]2006-10-07 05:31:33
andreas_kupriesplain2006-10-19 03:48:09
File Added - 198830: 280_84.patch_base.diff.gz

Logged In: YES 
user_id=75003

Uploading a new patch implementing the TIP in 8.4. changes:
TIP reference 86/211 -> 280, code is conditional
(TCL_TIP280),  bug fixes (mem leaks).
andreas_kupriesplain2006-10-19 23:58:46
File Added - 198967: 280_84.patch_base2.diff.gz

Logged In: YES 
user_id=75003

Uploading new patch (280 base2). Fixed the use of newer gcc
features which crept in and break with older versions of
gcc, or other native compilers (c++ var decl in the middle
of a block, mixing macro usage with #ifdef).
andreas_kupriesplain2006-10-20 03:54:37
Logged In: YES 
user_id=75003

Next patch (280 base3). normalized 'file' entry, bugfix in
use of path which seg.faulted when using 'info frame 0' at
the console of an interactive shell. Additional testcases,
mostly 'knownBug'.
andreas_kupriesplain2006-10-20 03:54:38
File Added - 199005: 280_84.patch_base3.diff.gz
andreas_kupriesplain2006-10-20 04:30:55
File Added - 199018: 280_84.patch_base4.diff.gz

Logged In: YES 
user_id=75003

Next (base4). Moved the normalization from 'info frame' to
'source'. Otherwise the 'file' entry in the result can be
wrong for relative paths (pwd changed between the calls of
'source' and 'info frame'). Thanks to Don Porter for
pointing this out. Should have no impact on performance due
to 'source' already doing normalization for reading the
file, and the result of that getting cached. Also removed
some debugging cruft from compile.test ... File now
unchanged again.
andreas_kupriesplain2006-10-20 07:49:26
File Added - 199041: 280_84.patch_base5.diff.gz

Logged In: YES 
user_id=75003

Next (base5). Fixed the majority of the knownBug test cases,
i.e. 'if 1 $body' etc. Currently the only remaining knownBug
is the handling of cont. lines in {...}-words.
andreas_kupriesplain2006-10-24 06:42:44
File Added - 199673: 280_84.patch_base6.diff.gz

Logged In: YES 
user_id=75003

Next (base6). Fix bug in Proc setup and cleanup for
precompiled bytecode (tbcload). Setup assumed that 'line'
infomration was not NULL, but can happen, i.e. for
precompiled bc. Cleanup crashed because iPtr was assumed to
be valid. Is not for precompiled bc. This also exposed a bug
in tbcload, ExtractFromProcBody (file cmpRead, line 2567)
does not fully initialize the Proc structures it allocates.
Bogus non-NULL proc->iPtr cannot be checked for validity.
The 'cmdPtr' field is not initialized either. Working on
tbcload patch ...
msoferplain2006-10-24 06:55:35
Logged In: YES 
user_id=148712

The comments reminds me: TclApplyObjCmd also does not
initialise procPtr->cmdPtr properly, the only non-trash
field is nsPtr. Not sure if this is relevant.
andreas_kupriesplain2006-10-24 07:07:55
Logged In: YES 
user_id=75003

It will be relevant for the 8.5 implementation. Should use
'memset', then set all the non empty fields.
andreas_kupriesplain2006-10-26 05:44:43
File Added - 200048: 280_84.patch_base7.diff.gz

Logged In: YES 
user_id=75003

Next 8.4 (base7). Implemented line tracking for 'switch',
additional tests for that, and ensured that dynamic procs
return type 'proc'. Switch is a bit of a beast with its
single and multi-word modes. In the single-word mode we have
to track lines inside the list holding the patterns and
branch scripts. Unavoidable even if the data is later not
used. In 8.5 modifying the script compile function is ...
difficult. A draft forward port has been done, but fails
parts of the testsuite ...
dkfplain2006-10-26 06:03:43
Logged In: YES 
user_id=79902

As the author of the [switch] compiler, I can say that yes,
it's doing things that are horrific. I learned the hard way
(through many crashes in testing) that tokens *must* refer
to the position of the token string within the overall
script or things go badly askew. The way I ended up doing
this is definitely a hack, but it is a safe one since any
time the compiler can't be sure, it just falls back to the
interpreted code (throwing up its hands in horror in the
process).
andreas_kupriesplain2006-10-26 06:07:42
Logged In: YES 
user_id=75003

First (base0) 8.5 patch. Fails 4 test cases, otherwise ok.
Equivalent to 8.4 base7 patch. This patch does not yet deal
with {expand} yet, nor compiled 'switch', nor 'dict for'
etc. I.e. 8.5 specific pieces have not been done yet.
andreas_kupriesplain2006-10-26 06:07:43
File Added - 200049: 280_85.patch_base0.diff.gz
andreas_kupriesplain2006-10-27 01:36:30
File Added - 200173: 280_84.patch_base8.diff.gz
andreas_kupriesplain2006-10-27 01:40:17
File Added - 200175: 280_85.patch_base1.diff.gz

Logged In: YES 
user_id=75003

Next set of patches, base8 for 8.4, base1 for 8.5. Fixed a
bug in the new code handling interpreted switch, forgot a
qualifying condition when releasing data from the context.
DecrRefcount on a path tcl_obj which was no such, but a
bytecode*, this smashed its interphandle.
andreas_kupriesplain2006-10-27 06:20:48
File Added - 200210: 280_85.patch_base2.diff.gz

Logged In: YES 
user_id=75003
Originator: YES

Next 8.5 patch (base2). Updated test cases (tcltest
locations changed slightly), additional comments. Test cases
for {expand} added. Two of them known to fail, demonstrating
that {expand}{literal list} is not tracking line numbers
inside. Yet.
andreas_kupriesplain2006-10-28 07:35:32
File Added - 200338: 280_85.patch_base3.diff.gz

Logged In: YES 
user_id=75003

Next 8.5 (base3). New: Completed handling of 'apply' (aka
lambda). Interpreted dift for/with/filter-script, bcc dict
for, bcc switch. First handling of {expand}. NOTE!! This is
known to crash tests in compile.test, and basic.test (It
passes info.test). Patch has been added more to have it safe
somewhere else than on my machine, than for testing and use.
andreas_kupriesplain2006-10-31 03:26:23
Logged In: YES 
user_id=75003

Next 8.5 (base4). Fixed crashes and test failures. This one
should be good for testing.
andreas_kupriesplain2006-10-31 03:26:24
File Added - 200682: 280_85.patch_base4.diff.gz
ecky-lplain2006-11-02 14:47:46
Logged In: YES 
user_id=1345135

some tests for [info frame] still fail... Presumably due to
line movements in the test scripts. Otherwise it works fine
in 8.5a6, as far as I could see.
andreas_kupriesplain2006-11-22 03:26:50
Logged In: YES 
user_id=75003
Originator: YES

NOTES.

The Tcl 8.5 patch is unconditional.

The Tcl 8.4 patch implements the functionality conditionally.
Define the CPP macro "TCL_TIP280" to activate the functionality.
andreas_kupriesplain2006-11-25 03:26:28
File Added - 204309: 280_84.patch_base9.diff.gz
andreas_kupriesplain2006-11-25 03:26:59
File Added - 204310: 280_85.patch_base5.diff.gz
andreas_kupriesplain2006-11-25 03:28:40
Logged In: YES 
user_id=75003
Originator: YES

Updated the patches to CVS head of 8.4/8.5 as of Nov 24.
Resolved the conflicts which occured for 8.5 due to code changes.
Fixed the line numbers in the info.test file.
andreas_kupriesplain2006-11-25 03:28:41
File Added - 204311: 280_85.patch_base5.diff.gz
andreas_kupriesplain2006-11-29 04:20:05
File Added - 204833: 280_84.patch_final.diff.gz
andreas_kupriesplain2006-11-29 04:21:14
File Added - 204834: 280_85.patch_final.diff.gz

Logged In: YES 
user_id=75003
Originator: YES

Updated to Head for both branches, added documentation to 8.5 branch.
nobodyplain2006-11-29 17:50:45
Logged In: NO 

close this?

(Donal Fellows, stuck behind a strange proxy...)
andreas_kupriesplain2006-11-29 23:55:39
Logged In: YES 
user_id=75003
Originator: YES

Yes.
Log in (anonymous is fine) to add a comment.

Attachments: