From: Carl Love Date: Tue, 20 Jul 2021 23:08:15 +0000 (-0500) Subject: Fix for gdb.python/py-breakpoint.exp X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=27df69020ad14b8d8d710aaf635bbea467f5b4f0;p=binutils-gdb.git 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. --- 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}