From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1983) id 233833858C53; Fri, 6 May 2022 23:09:09 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 233833858C53 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Carl Love To: gdb-cvs@sourceware.org Subject: [binutils-gdb] PowerPC fix for gdb.server/sysroot.exp X-Act-Checkin: binutils-gdb X-Git-Author: Carl Love X-Git-Refname: refs/heads/master X-Git-Oldrev: d11c7afad34bd2ff8cc5e0a38c32d3ec82a2664f X-Git-Newrev: 29004660c947a78c348d250e2e0eccb5d8056e29 Message-Id: <20220506230909.233833858C53@sourceware.org> Date: Fri, 6 May 2022 23:09:09 +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: Fri, 06 May 2022 23:09:09 -0000 https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3D29004660c947= a78c348d250e2e0eccb5d8056e29 commit 29004660c947a78c348d250e2e0eccb5d8056e29 Author: Carl Love Date: Thu May 5 16:45:18 2022 -0500 PowerPC fix for gdb.server/sysroot.exp =20 On PowerPC, the stop in the printf function is of the form: =20 Breakpoint 2, 0x00007ffff7c6ab08 in printf@@GLIBC_2.17 () from /lib64/l= ibc.so.6 =20 On other architectures the output looks like: =20 Breakpoint 2, 0x0000007fb7ea29ac in printf () from /lib/aarch64-linux-g= nu/libc.so.6 =20 The following patch modifies the printf test by matchine any character starting immediately after the printf. The test now works for PowerPC output as well as the output from other architectures. =20 The test has been run on a Power 10 system and and Intel x86_64 system. Diff: --- gdb/testsuite/gdb.server/sysroot.exp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gdb/testsuite/gdb.server/sysroot.exp b/gdb/testsuite/gdb.serve= r/sysroot.exp index a319200e8d2..95679fc0849 100644 --- a/gdb/testsuite/gdb.server/sysroot.exp +++ b/gdb/testsuite/gdb.server/sysroot.exp @@ -78,7 +78,7 @@ foreach_with_prefix sysroot { "local" "remote" } { =20 # Test that we can stop inside a library. gdb_breakpoint printf - gdb_test "continue" "Breakpoint $decimal.* (__)?printf .*" \ + gdb_test "continue" "Breakpoint $decimal.* (__)?printf.*" \ "continue to printf" } }