From patchwork Thu Mar 2 22:03:58 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Frager, Neal via Binutils" X-Patchwork-Id: 63603 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp93305wrd; Thu, 2 Mar 2023 14:07:34 -0800 (PST) X-Google-Smtp-Source: AK7set8dh6WOnoKhJ9s9VRRnOx/BJa2BSnAle05UNAls3dI7zzr1lrZ+tZaCz/2DjNWkVceGGu9a X-Received: by 2002:a17:906:d88:b0:8af:1a8c:eaa0 with SMTP id m8-20020a1709060d8800b008af1a8ceaa0mr12544340eji.75.1677794854466; Thu, 02 Mar 2023 14:07:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677794854; cv=none; d=google.com; s=arc-20160816; b=E5mnexLnZV2agUvSO3vL/u0Rmz3OOdYj9Fl5OmS+bzMeTmQ+N4EfodrCkZF2lKoKnM syBlaIUmRpOLTkEEkXKokhost/IVz0eJ/9LlZK7D/cHUvtTnAp7Rs6+cNOCZNSr/L4fG +X7l666zPBOsfaLQTZpyLg1qLgisT6O0Jr1aOdfO6n+K2JOpio6phen0mAY1tnVjixmp /e7ZOwRqFYJoTFCrBHLsLKhQBBE7LbFjbIDIieOoXlc+zJkzB70z5HFgdGj3yBR2XB4D Kxmesy+NciLLuzLkFY/zbKO7O2XpkfcErhsb3QTKc9PHvs6TbpTcf8pZVJv6HOwQN71C Cmlg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:from:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:dmarc-filter:delivered-to :dkim-signature:dkim-filter; bh=hU9ctA0wsmN+i1sE5EdD0QsvA4tsT2riyT7oj0Rlc/g=; b=0OqdkudrKUxVelIhfvY8roTXAhCrTuRI6NoxBVxs/mAIvEzLYu8gkt4ph2+Z9ssTHH 3gUTunixuZV1C2kIWXiTjtbZjFwdkw6rVV7lKkdTHNr9Ut7LW98NJGv3B8Z/qzUOnlS+ Z0GSa2maKNJnuWXM/YK1jOjNcQf7wKq+ycEuej/qBcLZ9YFpGH7X4OB/aFzbP7TPRWOf 7ruYvde4PmzyL7u0B6GZNvhooQN4WEifxTeIgZxDsEKGa8z7wezd4PRZF2QKsWGHF1+6 sBIiatYhKLc3oZe0cWEiTObA79Oux0A49hRx9hyg3/uoLlmgTPCZih104yObkbDgYmGz Qlrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=PNcV7mLY; spf=pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="binutils-bounces+ouuuleilei=gmail.com@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=sourceware.org Received: from sourceware.org ([2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id hs26-20020a1709073e9a00b008d741e5e351si598679ejc.356.2023.03.02.14.07.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Mar 2023 14:07:34 -0800 (PST) Received-SPF: pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=PNcV7mLY; spf=pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="binutils-bounces+ouuuleilei=gmail.com@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 73D56385085E for ; Thu, 2 Mar 2023 22:05:42 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 73D56385085E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1677794742; bh=hU9ctA0wsmN+i1sE5EdD0QsvA4tsT2riyT7oj0Rlc/g=; h=To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=PNcV7mLYr9PWn018N6rrZpf4D9bdkKafQtw4GSdt7tvnFar54PDMiJQ7uyWULBM6V cBB6nblLObay7IPbLimUlVOtCXz1GpfpdjLCo+pQp88OP/b10zuBfB5YnVLPJ6Prju UL6/dhW3N/vBatRDP+R0MGsch4hMaZWNP4hQaeiI= X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org 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 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) Received-SPF: pass (emagii.beebytevps.io: connection is authenticated) 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 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 X-BeenThere: binutils@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Binutils mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Ulf Samuelsson via Binutils From: "Frager, Neal via Binutils" Reply-To: binutils@emagii.com Errors-To: binutils-bounces+ouuuleilei=gmail.com@sourceware.org Sender: "Binutils" X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1759295417469519675?= X-GMAIL-MSGID: =?utf-8?q?1759295417469519675?= 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 .*"