From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2205) id 895553858D33; Wed, 25 Jan 2023 15:35:57 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 895553858D33 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1674660957; bh=ou2ILUa8N4iCQhtDCRFYVSXUuGgw598a7l9cqASXgHs=; h=From:To:Subject:Date:From; b=ygokrhlV+ymQ2Q3PF+kOLc2XQ9I1WEVn3Asg6xfxWMrEqRzqb6DksoVQnSKTqORpo yZwzDN+VegQhGs9tjmCdE1ACIfMuDo4gvr/mtiw0XTaOlyNVMfHf0Z7uX34mAU/rMf 9etDA0UPu/4XCqQ6lAUgR+NetzOY5EottQ3dWowc= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Tom de Vries To: gdb-cvs@sourceware.org Subject: [binutils-gdb] [gdb/testsuite] Fix gdb.base/unwind-on-each-insn.exp for -m32 X-Act-Checkin: binutils-gdb X-Git-Author: Tom de Vries X-Git-Refname: refs/heads/master X-Git-Oldrev: d25a8dbc7c3ae12aea8a203ce64f78608e22daa0 X-Git-Newrev: 9bf5a417591587233e1580973c8a64dfd4c2ac32 Message-Id: <20230125153557.895553858D33@sourceware.org> Date: Wed, 25 Jan 2023 15:35:57 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3D9bf5a4175915= 87233e1580973c8a64dfd4c2ac32 commit 9bf5a417591587233e1580973c8a64dfd4c2ac32 Author: Tom de Vries Date: Wed Jan 25 16:35:53 2023 +0100 [gdb/testsuite] Fix gdb.base/unwind-on-each-insn.exp for -m32 =20 With test-case gdb.base/unwind-on-each-insn.exp and target board unix/-= m32, I now get: ... # of expected passes 25 ... instead of: ... # of expected passes 133 ... as I used to get before commit d25a8dbc7c3 ("[gdb/testsuite] Allow debug srcfile2 in gdb.base/unwind-on-each-insn.exp"), due to the test-case tr= ying to match "rip =3D " and info frame printing "eip =3D " instead. =20 Fix this by dropping "rip" from the regexp. =20 Tested on x86_64-linux, target boards unix/{-m64,-m32}. Diff: --- gdb/testsuite/gdb.base/unwind-on-each-insn.exp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gdb/testsuite/gdb.base/unwind-on-each-insn.exp b/gdb/testsuite= /gdb.base/unwind-on-each-insn.exp index 059967a2b2e..0d0683659c3 100644 --- a/gdb/testsuite/gdb.base/unwind-on-each-insn.exp +++ b/gdb/testsuite/gdb.base/unwind-on-each-insn.exp @@ -146,7 +146,7 @@ proc do_test { function step_cmd } { =20 set in_fn 0 gdb_test_multiple "info frame" "" { - -re -wrap "rip =3D $::hex in ${function}( \\(.*\\))?;.*" { + -re -wrap " =3D $::hex in ${function}( \\(.*\\))?;.*" { set in_fn 1 } -re -wrap "" {}