From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1879) id CAB993857025; Mon, 30 May 2022 16:59:46 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CAB993857025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Simon Marchi To: gdb-cvs@sourceware.org Subject: [binutils-gdb] gdb/testsuite: fix gdb.trace/signal.exp on x86 X-Act-Checkin: binutils-gdb X-Git-Author: Simon Marchi X-Git-Refname: refs/heads/master X-Git-Oldrev: 5541bfdc97936581c0ead915e9117e22f21bdb12 X-Git-Newrev: da18821a9a2a36e0dc963d70252fc895906c264c Message-Id: <20220530165946.CAB993857025@sourceware.org> Date: Mon, 30 May 2022 16:59:46 +0000 (GMT) X-BeenThere: gdb-cvs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 May 2022 16:59:46 -0000 https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3Dda18821a9a2a= 36e0dc963d70252fc895906c264c commit da18821a9a2a36e0dc963d70252fc895906c264c Author: Simon Marchi Date: Mon May 30 12:54:47 2022 -0400 gdb/testsuite: fix gdb.trace/signal.exp on x86 =20 Patch =20 202be274a41a ("opcodes/i386: remove trailing whitespace from insns wi= th zero operands") =20 causes this regression: =20 FAIL: gdb.trace/signal.exp: find syscall insn in kill =20 It's because the test still expects to match a whitespace after the instruction, which the patch mentioned above removed. Remove the whitespaces for the regexp. =20 Change-Id: Ie194273cc942bfd91332d4035f6eec55b7d3a428 Diff: --- gdb/testsuite/gdb.trace/signal.exp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gdb/testsuite/gdb.trace/signal.exp b/gdb/testsuite/gdb.trace/s= ignal.exp index e5b60897486..782abeb69d3 100644 --- a/gdb/testsuite/gdb.trace/signal.exp +++ b/gdb/testsuite/gdb.trace/signal.exp @@ -55,7 +55,7 @@ set syscall_insn "" # Define the syscall instruction for each target. =20 if { [istarget "i\[34567\]86-*-linux*"] || [istarget "x86_64-*-linux*"] } { - set syscall_insn "\[ \t\](int|syscall|sysenter)\[ \t\]" + set syscall_insn "\[ \t\](int|syscall|sysenter)" } elseif { [istarget "aarch64*-*-linux*"] || [istarget "arm*-*-linux*"] } { set syscall_insn "\[ \t\](swi|svc)\[ \t\]" } else {