-# Copyright 2021 Free Software Foundation, Inc.
+# Copyright 2021-2024 Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# This tests GDB's ability to use the RISC-V prologue scanner in order to
# unwind through a function that uses the 'ld' instruction in its prologue.
-if {![istarget "riscv64-*-*"]} {
- verbose "Skipping ${gdb_test_file_name}."
- return
-}
+require {istarget "riscv64-*-*"}
standard_testfile riscv64-unwind-prologue-with-ld-lw.c \
riscv64-unwind-prologue-with-ld-lw-foo.s
return -1
}
-if ![runto_main] then {
- fail "can't run to main"
+if {![runto_main]} {
return 0
}