From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2205) id 0A91D384604C; Fri, 10 Jun 2022 06:46:21 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0A91D384604C 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 timeout in gdb.ada/ghost.exp X-Act-Checkin: binutils-gdb X-Git-Author: Tom de Vries X-Git-Refname: refs/heads/master X-Git-Oldrev: f460ede6035c5417d81956fe00760607e6042888 X-Git-Newrev: 84860e85919f7f09328ae1f84303435ff2e6ee64 Message-Id: <20220610064621.0A91D384604C@sourceware.org> Date: Fri, 10 Jun 2022 06:46:21 +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, 10 Jun 2022 06:46:21 -0000 https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3D84860e85919f= 7f09328ae1f84303435ff2e6ee64 commit 84860e85919f7f09328ae1f84303435ff2e6ee64 Author: Tom de Vries Date: Fri Jun 10 08:46:17 2022 +0200 [gdb/testsuite] Fix timeout in gdb.ada/ghost.exp =20 On openSUSE Tumbleweed with gcc-12, I run into a timeout: ... (gdb) print value^M Multiple matches for value^M [0] cancel^M [1] ada.strings.maps.value ( ada.strings.maps.character_mapping; \ character) return character at a-strmap.adb:599^M [2] pck.value at src/gdb/testsuite/gdb.ada/ghost/pck.ads:17^M [3] system.object_reader.value ( system.object_reader.object_symbo= l) \ return system.object_reader.uint64 at s-objrea.adb:2279^M [4] system.traceback.symbolic.value (system.address) return string at \ s-trasym.adb:200^M > FAIL: gdb.ada/ghost.exp: print value (timeout) print ghost_value^M Argument must be choice number^M (gdb) FAIL: gdb.ada/ghost.exp: print ghost_value ... =20 Fix this by prefixing value (as well as the other printed values) with = the package name: ... (gdb) print pck.value^M ... =20 Tested on x86_64-linux. =20 Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=3D29055 Diff: --- gdb/testsuite/gdb.ada/ghost.exp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gdb/testsuite/gdb.ada/ghost.exp b/gdb/testsuite/gdb.ada/ghost.= exp index 7f92b130eff..ece03dbe2f8 100644 --- a/gdb/testsuite/gdb.ada/ghost.exp +++ b/gdb/testsuite/gdb.ada/ghost.exp @@ -32,6 +32,6 @@ if ![runto "main.adb:$bp_location" ] then { return } =20 -gdb_test "print value" " =3D 64 '@'" -gdb_test "print ghost_value" " =3D 64 '@'" -gdb_test "print value2" " =3D 33 '!'" +gdb_test "print pck.value" " =3D 64 '@'" +gdb_test "print pck.ghost_value" " =3D 64 '@'" +gdb_test "print gpck.value2" " =3D 33 '!'"