From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id /rZKOPvoomJkGQEAWB0awg (envelope-from ) for ; Fri, 10 Jun 2022 02:47:23 -0400 Received: by simark.ca (Postfix, from userid 112) id D1B5F1E223; Fri, 10 Jun 2022 02:47:23 -0400 (EDT) Authentication-Results: simark.ca; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha256 header.s=default header.b=T46o7HMI; dkim-atps=neutral X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-3.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 6E5731E143 for ; Fri, 10 Jun 2022 02:47:23 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id AAC9C383EC43 for ; Fri, 10 Jun 2022 06:47:22 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AAC9C383EC43 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1654843642; bh=+Yoce/+8j6C7cZw7NJgZSPHTxqzk0F/C3bgB7H62dh0=; h=Date:To:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=T46o7HMIRLa8TxQcmkNAlP4EUw4mxNShVK8gBe2w16YwegTH5VxBqCBhmpcY7Vczq /sYHaW+F7HQRclwYLGPts1zabvsZnUTx6Z58EID5MeTd9VN9G6WAjqbZdm3rsm0b3c vkdfDyChFvh/i8K8KeWw858A8KbjvFeDJuq+ep+U= Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by sourceware.org (Postfix) with ESMTPS id F033D384D1BF for ; Fri, 10 Jun 2022 06:47:03 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org F033D384D1BF Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id C506221E2A for ; Fri, 10 Jun 2022 06:47:02 +0000 (UTC) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id B13C8139ED for ; Fri, 10 Jun 2022 06:47:02 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id SkMeKuboomJvJAAAMHmgww (envelope-from ) for ; Fri, 10 Jun 2022 06:47:02 +0000 Date: Fri, 10 Jun 2022 08:47:01 +0200 To: gdb-patches@sourceware.org Subject: [committed][gdb/testsuite] Fix timeout in gdb.ada/ghost.exp Message-ID: <20220610064659.GA10178@delia.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Tom de Vries via Gdb-patches Reply-To: Tom de Vries Errors-To: gdb-patches-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb-patches" Hi, 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_symbol) \ 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 ... Fix this by prefixing value (as well as the other printed values) with the package name: ... (gdb) print pck.value^M ... Tested on x86_64-linux. Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=29055 Committed to trunk. Thanks, - Tom [gdb/testsuite] Fix timeout in gdb.ada/ghost.exp --- 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 } -gdb_test "print value" " = 64 '@'" -gdb_test "print ghost_value" " = 64 '@'" -gdb_test "print value2" " = 33 '!'" +gdb_test "print pck.value" " = 64 '@'" +gdb_test "print pck.ghost_value" " = 64 '@'" +gdb_test "print gpck.value2" " = 33 '!'"