File: watch1.cmd

package info (click to toggle)
bashdb 3.1.0.9-1
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 3,252 kB
  • ctags: 117
  • sloc: sh: 4,880; pascal: 3,186; lisp: 484; makefile: 315; ansic: 294
file content (32 lines) | stat: -rw-r--r-- 501 bytes parent folder | download
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
set trace-commands on
# Test of watchpoint handling
#
###  Should fail since xyxxy is not defined...
watch xyxxy
info break
###  Test a simple breakpoint...
eval xx=1
watch xx
info break
#
# Now try enable and disable
#
###  Try testing enable/disable...
en  0w
L
dis 0W
L
###  Try deleting nonexistent watchpoint...
delete 10w
# 
###  Test display of watchpoints...
watche y > 25
info break
delete 0w
info break
delete 1w
info break
step
watch x
restart -B -q -L .. -x restart2.cmd dbg-test1.sh
quit