aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.python/py-breakpoint.exp
diff options
context:
space:
mode:
authorTom de Vries <tdevries@suse.de>2022-10-19 09:04:12 +0200
committerTom de Vries <tdevries@suse.de>2022-10-19 09:04:12 +0200
commita16c96980d9593a14237725af695f52e9f211bc9 (patch)
tree2d28b1633050d719134fa7e9345de2335032b8af /gdb/testsuite/gdb.python/py-breakpoint.exp
parent906f69cf65daa8fee1c1c94a5c2fb221ba02b40d (diff)
downloadbinutils-a16c96980d9593a14237725af695f52e9f211bc9.zip
binutils-a16c96980d9593a14237725af695f52e9f211bc9.tar.gz
binutils-a16c96980d9593a14237725af695f52e9f211bc9.tar.bz2
[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.
Diffstat (limited to 'gdb/testsuite/gdb.python/py-breakpoint.exp')
-rw-r--r--gdb/testsuite/gdb.python/py-breakpoint.exp2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.python/py-breakpoint.exp b/gdb/testsuite/gdb.python/py-breakpoint.exp
index 0451562..c3215b1 100644
--- a/gdb/testsuite/gdb.python/py-breakpoint.exp
+++ b/gdb/testsuite/gdb.python/py-breakpoint.exp
@@ -307,6 +307,7 @@ proc_with_prefix test_watchpoints { } {
proc_with_prefix test_bkpt_internal { } {
global srcfile testfile hex decimal
+ global skip_hw_watchpoint_tests_p
# Start with a fresh gdb.
clean_restart ${testfile}
@@ -354,6 +355,7 @@ proc_with_prefix test_bkpt_internal { } {
proc_with_prefix test_bkpt_eval_funcs { } {
global srcfile testfile hex decimal
+ global skip_hw_watchpoint_tests_p
# Start with a fresh gdb.
clean_restart ${testfile}