summaryrefslogtreecommitdiff
path: root/test/watchpoint1.ok
blob: b1e7e53ca0db77a645e0e8ca44e4e53c8670f484 (plain)
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
1       #! /usr/bin/gawk -f
2       BEGIN {
3            c = 0
4       }
5       
6       /apple/ {
7            nr = NR
8            c++
9            # printf "[c, NR] = [%s, %s]\n", c, NR
10      }
11      
12      END {
13          print c
14      }
Watchpoint 1: c
1: c = untyped variable
2: nr = untyped variable
3: NR = 0
Breakpoint 2 set at file `watchpoint1.awk', line 6
Starting program: 
Stopping in Rule ...
Watchpoint 1: c
  Old value: untyped variable
  New value: 0
main() at `watchpoint1.awk':6
6       /apple/ {
1: c = 0
2: nr = untyped variable
3: NR = 1
Breakpoint 2, main() at `watchpoint1.awk':6
6       /apple/ {
1: c = 0
2: nr = untyped variable
3: NR = 1
Breakpoint 2, main() at `watchpoint1.awk':6
6       /apple/ {
1: c = 0
2: nr = untyped variable
3: NR = 2
Watchpoint 1: c
  Old value: 0
  New value: 1
main() at `watchpoint1.awk':6
6       /apple/ {
1: c = 1
2: nr = 2
3: NR = 3
Breakpoint 2, main() at `watchpoint1.awk':6
6       /apple/ {
1: c = 1
2: nr = 2
3: NR = 3
Breakpoint 2, main() at `watchpoint1.awk':6
6       /apple/ {
1: c = 1
2: nr = 2
3: NR = 4
Watchpoint 1: c
  Old value: 1
  New value: 2
main() at `watchpoint1.awk':6
6       /apple/ {
1: c = 2
2: nr = 4
3: NR = 5