[gdb/testsuite] Fix ERROR in gdb.python/py-breakpoint.exp
authorTom de Vries <tdevries@suse.de>
Wed, 19 Oct 2022 07:04:12 +0000 (09:04 +0200)
committerTom de Vries <tdevries@suse.de>
Wed, 19 Oct 2022 07:04:12 +0000 (09:04 +0200)
commita16c96980d9593a14237725af695f52e9f211bc9
tree2d28b1633050d719134fa7e9345de2335032b8af
parent906f69cf65daa8fee1c1c94a5c2fb221ba02b40d
[gdb/testsuite] Fix ERROR in gdb.python/py-breakpoint.exp

With test-case gdb.python/py-breakpoint.exp I run into:
...
(gdb) ERROR: tcl error sourcing gdb.python/py-breakpoint.exp.
ERROR: can't read "skip_hw_watchpoint_tests_p": no such variable
    while executing
"if {$skip_hw_watchpoint_tests_p} {
        gdb_test_no_output "set can-use-hw-watchpoints 0" ""
    }"
...

Fix this by adding the missing "global skip_hw_watchpoint_tests_p" in two
procs.

Tested on x86_64-linux.
gdb/testsuite/gdb.python/py-breakpoint.exp