From: Tom de Vries Date: Wed, 1 Dec 2021 14:24:19 +0000 (+0100) Subject: [gdb/testsuite] Fix typo in gdb.multi/multi-arch-exec.exp X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e1ccbd6d3ad36569715fd12889f5ab2cca3f842c;p=binutils-gdb.git [gdb/testsuite] Fix typo in gdb.multi/multi-arch-exec.exp With gdb.multi/multi-arch-exec.exp I run into: ... Running src/gdb/testsuite/gdb.multi/multi-arch-exec.exp ... ERROR: tcl error sourcing src/gdb/testsuite/gdb.multi/multi-arch-exec.exp. ERROR: wrong # args: extra words after "else" clause in "if" command while executing "if [istarget "powerpc64*-*-*"] { set march "-m64" } else if [istarget "s390*-*-*"] { set march "-m31" } else { set march "-m32" }" ... Fix the else if -> elseif typo. Tested on x86_64-linux. --- diff --git a/gdb/testsuite/gdb.multi/multi-arch-exec.exp b/gdb/testsuite/gdb.multi/multi-arch-exec.exp index a5d1ed481a7..12edbc2faaa 100644 --- a/gdb/testsuite/gdb.multi/multi-arch-exec.exp +++ b/gdb/testsuite/gdb.multi/multi-arch-exec.exp @@ -73,7 +73,7 @@ proc append_arch2_options {options_var} { if [istarget "powerpc64*-*-*"] { set march "-m64" - } else if [istarget "s390*-*-*"] { + } elseif [istarget "s390*-*-*"] { set march "-m31" } else { set march "-m32"