diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2015-11-24 22:59:21 +0200 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2015-11-24 22:59:21 +0200 |
commit | 20d333afbaadde8a8daa4091e22cf549c6954a6a (patch) | |
tree | b9c237acaaaa5ea430e08557b75734d6639c114e /test/watchpoint1.ok | |
parent | 0300d4581c543ddbd2f307782650a0978ff6bdd8 (diff) | |
download | egawk-20d333afbaadde8a8daa4091e22cf549c6954a6a.tar.gz egawk-20d333afbaadde8a8daa4091e22cf549c6954a6a.tar.bz2 egawk-20d333afbaadde8a8daa4091e22cf549c6954a6a.zip |
Make watchpoints fire before breakpoints in the debugger.
Diffstat (limited to 'test/watchpoint1.ok')
-rw-r--r-- | test/watchpoint1.ok | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/test/watchpoint1.ok b/test/watchpoint1.ok new file mode 100644 index 00000000..b1e7e53c --- /dev/null +++ b/test/watchpoint1.ok @@ -0,0 +1,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 |