From e1ccbd6d3ad36569715fd12889f5ab2cca3f842c Mon Sep 17 00:00:00 2001 From: Tom de Vries Date: Wed, 1 Dec 2021 15:24:19 +0100 Subject: [PATCH] [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. --- gdb/testsuite/gdb.multi/multi-arch-exec.exp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" -- 2.30.2