Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Changes In Branch ak-colin-feature-debug
Excluding Merge-Ins
This is equivalent to a diff from
c148f532c8
to 27cb6ed758
2013-04-08
| | |
19:34 |
|
check-in: c2d74e1a91 user: aku tags: trunk
|
19:31 |
|
Closed-Leaf
check-in: 27cb6ed758 user: aku tags: ak-colin-feature-debug
|
19:10 |
|
check-in: 32272af170 user: andreask tags: ak-colin-feature-debug
|
2013-04-05
| | |
18:27 |
|
check-in: f850bb0c5b user: andreask tags: trunk
|
04:51 |
|
check-in: 216cdc8c56 user: aku tags: ak-colin-feature-debug
|
2013-04-04
| | |
16:18 |
|
check-in: c148f532c8 user: andreask tags: trunk
|
16:15 |
|
Closed-Leaf
check-in: 7593991c41 user: andreask tags: apn-dtplite-kwlinks
|
04:28 |
|
check-in: 740521ccc1 user: aku tags: trunk
|
| | |
Changes to ChangeLog.
1
2
3
4
5
6
7
|
1
2
3
4
5
6
7
8
9
10
11
12
13
|
+
+
+
+
+
+
|
2013-04-04 Andreas Kupries <aku@hephaistos>
* support/installation/modules.tcl (Module):
* modules/debug: debug narrator module adapted
from Colin McCormack's Debug wub utility package.
2013-03-21 Andreas Kupries <[email protected]>
* aclocal.m4: [Bug 3608581]: Extended check for executable
* configure: extension to recognize an MSYS environment as Windows
and requiring a ".exe" suffix. Regenerated configure.
2013-03-11 Andreas Kupries <[email protected]>
|
︙ | | |
| | | | | |
Added modules/debug/ChangeLog.
|
1
2
3
4
5
6
7
8
9
10
11
12
|
+
+
+
+
+
+
+
+
+
+
+
+
|
2013-04-08 Andreas Kupries <[email protected]>
* debug.man: Added documentation.
* debug_caller.man:
* debug_heartbeat.man:
* debug_timestamp.man:
2013-04-04 Andreas Kupries <aku@hephaistos>
* New module and packages for generating a debug
narrative. Adapted from the Wub utility package
Debug, by Colin McCormack.
|
| | | | | | | | | | |
Added modules/debug/caller.tcl.
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
|
## -*- tcl -*-
# ### ### ### ######### ######### #########
## Utility command for use as debug prefix command to un-mangle snit
## and TclOO method calls.
# ### ### ### ######### ######### #########
## Requisites
package require Tcl 8.5
package require debug
namespace eval ::debug {
namespace export caller
namespace ensemble create
}
# ### ### ### ######### ######### #########
## API & Implementation
proc ::debug::caller {} {
# For snit (type)methods, rework the command line to be more
# legible and in line with what the user would expect. To this end
# we pull the primary command out of the arguments, be it type or
# object, massage the command to match the original (type)method
# name, then resort and expand the words to match the call before
# the snit got its claws into it.
set a [lassign [info level -1] m]
regsub {.*Snit_} $m {} m
switch -glob -- $m {
htypemethod* {
# primary = type, a = type
set a [lassign $a primary]
set m [string map {_ { }} [string range $m 11 end]]
}
typemethod* {
# primary = type, a = type
set a [lassign $a primary]
set m [string range $m 10 end]
}
hmethod* {
# primary = self, a = type selfns self win ...
set a [lassign $a _ _ primary _]
set m [string map {_ { }} [string range $m 7 end]]
}
method* {
# primary = self, a = type selfns self win ...
set a [lassign $a _ _ primary _]
set m [string range $m 6 end]
}
destructor -
constructor {
# primary = self, a = type selfns self win ...
set a [lassign $a _ _ primary _]
}
typeconstructor {
return [list {*}$a $m]
}
default {
# Unknown
return [list $m {*}$a]
}
}
return [list $primary {*}$m {*}$a]
}
# ### ######### ###########################
## Ready for use
package provide debug::caller 1
return
|
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Added modules/debug/debug.man.