I ran test-case gdb.base/reset-catchpoint-cond.exp on riscv64-linux, and got:
...
(gdb) catch syscall write^M
The feature 'catch syscall' is not supported on this architecture yet.^M
(gdb) FAIL: $exp: mode=syscall: catch syscall write
...
Fix this by checking for supports_catch_syscall.
Tested on riscv64-linux and x86_64-linux.
# Run the tests.
foreach_with_prefix mode { syscall signal fork } {
- if { $mode == "syscall" && ![allow_xml_test] } {
+ if { $mode == "syscall"
+ && ( ![allow_xml_test] || ![supports_catch_syscall] ) } {
continue
}
run_test $mode