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
|