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.
This commit is contained in:
Carl Love 2021-07-20 18:08:15 -05:00
parent 44710bb280
commit 27df69020a

View File

@ -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}