From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id NZ+MD0mRiGocbTQAWB0awg (envelope-from ) for ; Fri, 21 Aug 2026 13:56:25 -0400 Authentication-Results: simark.ca; dkim=fail reason="signature verification failed" (768-bit key; unprotected) header.d=tromey.com header.i=@tromey.com header.a=rsa-sha256 header.s=default header.b=GcDTiIgh; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 2D3E51E033; Fri, 21 Aug 2026 13:56:25 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-5.1 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_INVALID,DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=4.0.1 Received: from vm01.sourceware.org (vm01.sourceware.org [IPv6:2620:52:6:3111::32]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 923E11E033 for ; Fri, 21 Aug 2026 13:56:24 -0400 (EDT) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 0956D4BB24C0 for ; Fri, 21 Aug 2026 17:56:23 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0956D4BB24C0 Authentication-Results: sourceware.org; dkim=fail reason="signature verification failed" (768-bit key, unprotected) header.d=tromey.com header.i=@tromey.com header.a=rsa-sha256 header.s=default header.b=GcDTiIgh Received: from omta040.useast.a.cloudfilter.net (omta040.useast.a.cloudfilter.net [44.202.169.39]) by sourceware.org (Postfix) with ESMTPS id C66F74B9DB4A for ; Fri, 21 Aug 2026 17:55:58 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org C66F74B9DB4A Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=tromey.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=tromey.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org C66F74B9DB4A Authentication-Results: sourceware.org; arc=none smtp.remote-ip=44.202.169.39 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1787334958; cv=none; b=q0tJigCnJexyz1AqNZdpLxdbROJnHOy72WYfkuVquS51b3bHwyngQI43CdHjd95Af4ADgjIoW/qkmNvectfbJ0XGrjsKWBwrDcrWVh4qKut13naSjdlxvUIHt9PbKTFjdGs5kO+//L87JPJmr/Ty+r4XrwVx9dqA28YRolwEbTQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1787334958; c=relaxed/simple; bh=ndLlQ6X5gIHHj3+YxnIFjTBp68ItHlZ5FjFqD78tsS8=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=q8kHC3Ry8YGys25Jo/DE3QnhE5YysCivy/BFQrBnOqL8pSI8aaRrmWgpmH+CLeMjrA/WQ5ue85waCK5qxLs3z8TbX6KWVZlk758xUKBH/h1WLA2Fs9qi11m3xli7NZxplOFz7DmY09vm4x/Oh0cQctw8gXk4kn1yupR9VTqLcqQ= ARC-Authentication-Results: i=1; sourceware.org; dkim=policy (768-bit key, unprotected) header.d=tromey.com header.i=@tromey.com header.a=rsa-sha256 header.s=default header.b=GcDTiIgh reason="signing key too small" DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C66F74B9DB4A Received: from eig-obgw-6005b.ext.cloudfilter.net ([10.0.30.162]) by cmsmtp with ESMTPS id xMjCwabt8uFzgxTTCwZLoI; Fri, 21 Aug 2026 17:55:58 +0000 Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with ESMTPS id xTTBwGKwPtyrGxTTBwhXVC; Fri, 21 Aug 2026 17:55:57 +0000 X-Authority-Analysis: v=2.4 cv=JaK8rVKV c=1 sm=1 tr=0 ts=6a88912d a=ApxJNpeYhEAb1aAlGBBbmA==:117 a=ApxJNpeYhEAb1aAlGBBbmA==:17 a=Sv0fKeRqtYgA:10 a=ItBw4LHWJt0A:10 a=zstS-IiYAAAA:8 a=ym_V_cAcwIBXZPmVfZUA:9 a=zZCYzV9kfG8A:10 a=4G6NA9xxw8l3yy4pmD5M:22 a=DCx65vhANUyCzuf5D8fC:22 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=Content-Type:MIME-Version:Message-ID:Date:References:In-Reply-To :Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=jaJG1H32uLuiatgFF9Xh7JfG1HXLqPP1FGvdhrYMItM=; b=GcDTiIghxTAQ89EchGZhn+Como Gqs/QdpMGAQSVAzmDQxKCNuCMNTkmBG0JnA8stPvODDP/xpuzUs+SHmB7SzXCx18kEko94EpNbuWW BmornxEPY18ZKKW5fWS0ylLpb; Received: from 97-122-117-2.hlrn.qwest.net ([97.122.117.2]:58030 helo=bapiya) by box5379.bluehost.com with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.99.5) (envelope-from ) id 1wxTTB-00000002Aqs-0lg6; Fri, 21 Aug 2026 11:55:57 -0600 From: Tom Tromey To: Hannes Domani Cc: gdb-patches@sourceware.org, Guinevere Larsen , Thiago Jung Bauermann Subject: Re: [PATCH v2] Prevent downgrading of hardware watchpoints if possible In-Reply-To: <20260727150150.1014621-1-ssbssa@yahoo.de> (Hannes Domani's message of "Mon, 27 Jul 2026 16:57:01 +0200") References: <20260727150150.1014621-1-ssbssa.ref@yahoo.de> <20260727150150.1014621-1-ssbssa@yahoo.de> X-Attribution: Tom Date: Fri, 21 Aug 2026 11:55:56 -0600 Message-ID: <875x13qrwz.fsf@tromey.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - box5379.bluehost.com X-AntiAbuse: Original Domain - sourceware.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - tromey.com X-BWhitelist: no X-Source-IP: 97.122.117.2 X-Source-L: No X-Exim-ID: 1wxTTB-00000002Aqs-0lg6 X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 97-122-117-2.hlrn.qwest.net (bapiya) [97.122.117.2]:58030 X-Source-Auth: tom+tromey.com X-Email-Count: 9 X-Org: HG=bhshared;ORG=bluehost; X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-CMAE-Envelope: MS4xfEPmVRDwuRjS1O8umyeFF+aUwUB7dWtprsrjurW+sezubJJEpO9eJueflgmz1G50odYuOhI8nimZIPTKYqccUiaEvKBbsIuX6NhasSRijfGSOvR81xYl KLC3Q2RXJbRuYbAluyGQjapDXkRr6pRXt7OMtPV5Em0eoV/gAMYsw9/PY5dHRoaeCkWT3m4A0S5vDe+0nkavqNi2IoJWOU5uK+E= X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces~public-inbox=simark.ca@sourceware.org >>>>> "Hannes" == Hannes Domani writes: Hannes> The lazy flag of a value can tell us if the value contents are available. Hannes> But this could be either because it was simply never actually accessed, Hannes> or it tried to be accessed, and failed. Hannes> The latter are interesting for watchpoints, the former are not. Hannes> Currently it only uses lazy values if they are at the head of the value Hannes> chain, but this is fragile logic, and degrades some watchpoints to Hannes> software watchpoints where it's actually not necessary. Hannes> So this adds a new value flag 'm_fetch_lazy_failed' which tells if the Hannes> watchpoint expression actually tried to access the value and failed. Hannes> And this is used instead of the value chain location to tell if a lazy Hannes> value should be used as a watchpoint location. Thanks for doing this. I think this is ok. Approved-By: Tom Tromey Tom