1# Check that 'watchpoint set' errors out gracefully when we can't set dbregs 2# and that new threads are monitored correctly even though we can't copy dbregs. 3 4# REQUIRES: system-netbsd && (target-x86 || target-x86_64) && !dbregs-set 5# RUN: %clang_host %p/Inputs/thread-dbreg.c -pthread -g -o %t.out 6# RUN: %lldb -b -o 'settings set interpreter.stop-command-source-on-error false' -s %s %t.out 2>&1 | FileCheck %s 7 8settings show interpreter.stop-command-source-on-error 9# CHECK: interpreter.stop-command-source-on-error (boolean) = false 10 11b main 12# CHECK: Breakpoint {{[0-9]+}}: where = {{.*}}`main 13b thread_func 14# CHECK: Breakpoint {{[0-9]+}}: where = {{.*}}`thread_func 15run 16# CHECK: stop reason = breakpoint 17watchpoint set variable g_watchme 18# CHECK: error: Watchpoint creation failed 19cont 20# CHECK: stop reason = breakpoint 21cont 22# CHECK: Process {{[0-9]+}} exited with status = 0 23