[gdb/testsuite] Use require in gdb.dwarf2/assign-variable-value-to-register.exp

In test-case gdb.dwarf2/assign-variable-value-to-register.exp a return is
missing here after the unsupported:
...
if { ![is_x86_64_m64_target] } {
    unsupported "unsupported architecture"
}
...
and consequently on aarch64-linux I ran into an UNSUPPORTED followed by 3
FAILs.

Fix this by simply using require:
...
require is_x86_64_m64_target
...

Tested on x86_64-linux and aarch64-linux.
This commit is contained in:
Tom de Vries 2024-01-12 09:29:37 +01:00
parent 6bf40ece27
commit 322ffd247e

View file

@ -19,9 +19,7 @@
# This test uses a hard-coded x86-64 DWARF register number, so restrict it to
# x86-64.
if { ![is_x86_64_m64_target] } {
unsupported "unsupported architecture"
}
require is_x86_64_m64_target
load_lib dwarf.exp