From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from emagii.se (www.emagii.com [185.133.207.17]) by sourceware.org (Postfix) with ESMTPS id 056BE3857B8E for ; Thu, 2 Mar 2023 22:04:26 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 056BE3857B8E Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=emagii.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=emagii.com Received: from valinor.ownit.se (84-55-68-216.customers.ownit.se [84.55.68.216]) by emagii.se (Postfix) with ESMTPSA id A520012018B; Thu, 2 Mar 2023 23:04:24 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=emagii.com; s=default; t=1677794665; bh=hU9ctA0wsmN+i1sE5EdD0QsvA4tsT2riyT7oj0Rlc/g=; h=From:To:Subject; b=3NVI7M1ew/qTUHBxccyNYNMnPWjfgVHUIP+5y3lFBWhgq7FNxrT1hqUYIgcFcppaF AyEcs+diVJL5e1eKBKRQs0cH2gO5dDPz49vzkm2eMOe+5QCn9Of2LJyOiuCHN94JMN rcjIdfcZZZXToLme9q65K4upZcqHWtTj1FyxMO1Q= Authentication-Results: emagii.beebytevps.io; spf=pass (sender IP is 84.55.68.216) smtp.mailfrom=binutils@emagii.com smtp.helo=valinor.ownit.se Received-SPF: pass (emagii.beebytevps.io: connection is authenticated) From: binutils@emagii.com To: binutils@sourceware.org Cc: nickc@redhat.com, Tom de Vries Subject: [PATCH v9 01/11] [gdb/testsuite] Fix gdb.rust/watch.exp on ppc64le Date: Thu, 2 Mar 2023 23:03:58 +0100 Message-Id: <20230302220408.1925678-2-binutils@emagii.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230302220408.1925678-1-binutils@emagii.com> References: <20230302220408.1925678-1-binutils@emagii.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-PPP-Message-ID: <167779466501.1167654.7180534854113285083@localhost.localdomain> X-PPP-Vhost: emagii.com X-Spam-Status: No, score=-12.5 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,GIT_PATCH_0,SPF_HELO_FAIL,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: From: Tom de Vries On x86_64-linux, I have: ... (gdb) watch -location y^M Hardware watchpoint 2: -location y^M (gdb) PASS: gdb.rust/watch.exp: watch -location y ... but on powerpc64le-linux, I run into: ... (gdb) watch -location y^M Watchpoint 2: -location y^M (gdb) FAIL: gdb.rust/watch.exp: watch -location y ... due to the regexp matching "Hardware watchpoint" but not "Watchpoint": ... gdb_test "watch -location y" ".*watchpoint .* -location .*" ... Fix this by making the regexp less restrictive. Tested on x86_64-linux and powerpc64le-linux. --- gdb/testsuite/gdb.rust/watch.exp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gdb/testsuite/gdb.rust/watch.exp b/gdb/testsuite/gdb.rust/watch.exp index 83cb41cc1eb..43c88f8a1fc 100644 --- a/gdb/testsuite/gdb.rust/watch.exp +++ b/gdb/testsuite/gdb.rust/watch.exp @@ -30,4 +30,4 @@ if {![runto ${srcfile}:$line]} { } # Just setting a watchpoint was enough to trigger the bug. -gdb_test "watch -location y" ".*watchpoint .* -location .*" +gdb_test "watch -location y" ".*\[wW\]atchpoint .* -location .*" -- 2.34.1