blob: c32f1bc95878034be4abbb5b80c32bd20b971837 [file] [log] [blame]
breakpoint set -p "Break here"
r
watchpoint set variable val
watchpoint modify -c "val == 1"
c
# CHECK: Watchpoint 1 hit:
# CHECK-NEXT: old value: 0
# CHECK-NEXT: new value: 1
# CHECK-NEXT: Process {{[0-9]+}} resuming
# CHECK-NEXT: Process {{[0-9]+}} stopped
# CHECK-NEXT: {{.*}} stop reason = watchpoint 1
c
# CHECK: Process {{[0-9]+}} exited with status = 0 (0x00000000)