As Pavel pointed out, on Apple Silicon "b main" stops at a point after the variable has already been initialized. This patch updates the test case to avoids that. I've also split the test into separate files so its easier to reproduce the individual scenarios without having to build any shared state.
12 lines
263 B
Plaintext
12 lines
263 B
Plaintext
breakpoint set -p "Break here"
|
|
r
|
|
watchpoint set variable val
|
|
watchpoint modify 1 -c "(val == 1)"
|
|
watchpoint command add -s lua
|
|
print("conditional watchpoint")
|
|
wp:SetEnabled(false)
|
|
quit
|
|
c
|
|
# CHECK-COUNT-1: conditional watchpoint
|
|
# CHECK-NOT: conditional watchpoint
|