diff options
author | Tom de Vries <tdevries@suse.de> | 2024-01-12 09:29:37 +0100 |
---|---|---|
committer | Tom de Vries <tdevries@suse.de> | 2024-01-12 09:29:37 +0100 |
commit | 322ffd247e4e95a0d5a1b11ad1ef91f3378e6174 (patch) | |
tree | 3b17d72acebfc36aaaca20206d1eafb346e27f71 /gdb | |
parent | 6bf40ece270c42b0e5f90459a7dde851e3e7485d (diff) | |
download | fsf-binutils-gdb-322ffd247e4e95a0d5a1b11ad1ef91f3378e6174.zip fsf-binutils-gdb-322ffd247e4e95a0d5a1b11ad1ef91f3378e6174.tar.gz fsf-binutils-gdb-322ffd247e4e95a0d5a1b11ad1ef91f3378e6174.tar.bz2 |
[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.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/testsuite/gdb.dwarf2/assign-variable-value-to-register.exp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gdb/testsuite/gdb.dwarf2/assign-variable-value-to-register.exp b/gdb/testsuite/gdb.dwarf2/assign-variable-value-to-register.exp index 14f6b90..101ba94 100644 --- a/gdb/testsuite/gdb.dwarf2/assign-variable-value-to-register.exp +++ b/gdb/testsuite/gdb.dwarf2/assign-variable-value-to-register.exp @@ -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 |