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.
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
8 settings show interpreter.stop-command-source-on-error
9 # CHECK: interpreter.stop-command-source-on-error (boolean) = false
12 # CHECK: Breakpoint {{[0-9]+}}: where = {{.*}}`main
14 # CHECK: Breakpoint {{[0-9]+}}: where = {{.*}}`thread_func
16 # CHECK: stop reason = breakpoint
17 watchpoint set variable g_watchme
18 # CHECK: error: Watchpoint creation failed
20 # CHECK: stop reason = breakpoint
22 # CHECK: Process {{[0-9]+}} exited with status = 0