From 27df69020ad14b8d8d710aaf635bbea467f5b4f0 Mon Sep 17 00:00:00 2001 From: Carl Love Date: Tue, 20 Jul 2021 18:08:15 -0500 Subject: [PATCH] Fix for gdb.python/py-breakpoint.exp Not all systems have hardware breakpoint support. Add a check to see if the system supports hardware breakpoints. gdb/testsuite/ChangeLog * gdb.python/py-breakpoint.exp (test_hardware_breakpoints): Add check for hardware breakpoint support. --- gdb/testsuite/gdb.python/py-breakpoint.exp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gdb/testsuite/gdb.python/py-breakpoint.exp b/gdb/testsuite/gdb.python/py-breakpoint.exp index d8fb85b784c..e2ffe8cbe46 100644 --- a/gdb/testsuite/gdb.python/py-breakpoint.exp +++ b/gdb/testsuite/gdb.python/py-breakpoint.exp @@ -255,6 +255,9 @@ proc_with_prefix test_bkpt_invisible { } { proc_with_prefix test_hardware_breakpoints { } { global srcfile testfile hex decimal + # Skip these tests if the HW does not support hardware breakpoints. + if { [skip_hw_breakpoint_tests] } { return 0 } + # Start with a fresh gdb. clean_restart ${testfile} -- 2.30.2