1 breakpoint set -p "Break here"
3 watchpoint set variable val
4 watchpoint modify -c "val == 1"
6 # CHECK: Watchpoint 1 hit:
7 # CHECK-NEXT: old value: 0
8 # CHECK-NEXT: new value: 1
9 # CHECK-NEXT: Process {{[0-9]+}} resuming
10 # CHECK-NEXT: Process {{[0-9]+}} stopped
11 # CHECK-NEXT: {{.*}} stop reason = watchpoint 1
13 # CHECK: Process {{[0-9]+}} exited with status = 0 (0x00000000)