set test "probe hbreak support"
gdb_test_multiple "hbreak *$main_lo" $test {
-re "You may have requested too many.*$gdb_prompt $" {
- pass "$test (no support)"
+ unsupported "$test (no support)"
}
-re "No hardware breakpoint support.*$gdb_prompt $" {
- pass "$test (no support)"
+ unsupported "$test (no support)"
}
-re "$gdb_prompt $" {
pass "$test (support)"
set test "step in ro region"
gdb_test_multiple "si" $test {
-re "Could not insert hardware breakpoints.*$gdb_prompt $" {
- gdb_assert {!$hw_step && $auto_hw == "on" && !$supports_hbreak} \
- "$test (cannot insert hw break)"
+ if {!$hw_step && $auto_hw == "on" && !$supports_hbreak} {
+ unsupported "$test (cannot insert hw break)"
+ } else {
+ fail "$test (cannot insert hw break)"
+ }
}
-re "Cannot set software breakpoint at read-only address $next_insn.*$gdb_prompt $" {
gdb_assert {!$hw_step && $auto_hw == "off"} \