From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id VgyOOOyxE2epbhMAWB0awg (envelope-from ) for ; Sat, 19 Oct 2024 09:19:40 -0400 Authentication-Results: simark.ca; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=dyxyl.com header.i=@dyxyl.com header.a=rsa-sha256 header.s=default header.b=joZJarHS; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id D9F1A1E35F; Sat, 19 Oct 2024 09:19:40 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-5.5 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_INVALID,DKIM_SIGNED,HK_RANDOM_FROM,MAILING_LIST_MULTI, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_VALIDITY_CERTIFIED,RCVD_IN_VALIDITY_RPBL, RCVD_IN_VALIDITY_SAFE,URIBL_BLOCKED,URIBL_DBL_BLOCKED_OPENDNS autolearn=ham autolearn_force=no version=4.0.0 Received: from server2.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 ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 7EF571E35D for ; Sat, 19 Oct 2024 09:19:39 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 06D4E3858C56 for ; Sat, 19 Oct 2024 13:19:39 +0000 (GMT) Received: from cp165172.hpdns.net (cp165172.hpdns.net [91.238.165.172]) by sourceware.org (Postfix) with ESMTPS id 0E95F3858C50 for ; Sat, 19 Oct 2024 13:19:13 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 0E95F3858C50 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=dyxyl.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=dyxyl.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 0E95F3858C50 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=91.238.165.172 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1729343954; cv=none; b=YQ/7fbtsV5OX7utSGBlx1bpsuxec9w8oLAXC2iJkqedXSjGoEBCPx3I/kI29/DS8qEyUiMoxzXL3aS+E0nIjrOGfaOYKABZqYYrvdInv1OH/EIzxWVj2H9DRLVusddSxPqTkOF0SxsFnA45AigaAM3xU3WZ2HJer1jIkdBvzq1E= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1729343954; c=relaxed/simple; bh=z7AyVu93dV3jXzJ/voVgjOcXDXOT8bAex1rvXYU50dM=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=MngSPc6EYG64Qi8K5pGWh7SibxNZQCNZWHCFSYtkjV9YBQFnFqPV0DjVeXi/fvd+2Uao9C7yImD5pbC+3DufK1PHXkbLmHaIJYS0Qx2X7RRV7vIep9WLphvmZyCM7sYUiu2eOoncxvA8DnD3yZpsOJxDLaaScIvQz2dcbAngkSc= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=dyxyl.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=LD/56bV1xDRNzRro5LDCGKQTXLeFxBR4zdb4Pq7KVVU=; b=joZJarHSVg4OQf0dF+4sNeIHJv KcLYDYvmp1A9vxd7CjOFXrust1A3e90gMkFMeUzzDlPsNc+T+hegJWWbKT3nF6fuVR8rd7vZBOTee z084bzGj29e2aSxkL1+iyKzl35nKYNj64C6l1bL+pkWp8D+UMwMWs1XreQt9r/4Ttfqk6qVgt4c7H p9hFLBVs1ooqJe5u6gMeeHLUJugkiqY5M6MmARV3G0fN9Qjz9fzr0abFG4TvwXSqhBf3aUo5Fa75M wD5HziThjDdEbGTo8E01PqX4v4D1wvzyF7h8Idi6ngodX+1Oxs+KQJZEicoTJVStgRee/k1dUQQoq 6xal9jhQ==; Received: from cmbg-19-b2-v4wan-170160-cust2145.vm17.cable.virginm.net ([94.175.88.98]:44134 helo=localhost.localdomain) by cp165172.hpdns.net with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.97.1) (envelope-from ) id 1t29MP-0000000Cbsk-1bcO; Sat, 19 Oct 2024 14:19:08 +0100 Received: by localhost.localdomain (Postfix, from userid 597) id 18E54E127E; Sat, 19 Oct 2024 14:19:08 +0100 (BST) From: Martin Simmons To: Etienne Buira Cc: gdb@sourceware.org Subject: Re: Feature suggestion: location conditioned watchpoint In-Reply-To: (message from Etienne Buira via Gdb on Sat, 19 Oct 2024 09:35:40 +0200) References: Date: Sat, 19 Oct 2024 14:19:08 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-YourOrg-MailScanner-Information: Please contact the ISP for more information X-YourOrg-MailScanner-ID: 1t29MP-0000000Cbsk-1bcO X-YourOrg-MailScanner: Found to be clean X-YourOrg-MailScanner-SpamCheck: X-YourOrg-MailScanner-From: qqxnjvamvxwx@dyxyl.com X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cp165172.hpdns.net X-AntiAbuse: Original Domain - sourceware.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - dyxyl.com X-Get-Message-Sender-Via: cp165172.hpdns.net: authenticated_id: dyxyl/from_h X-Authenticated-Sender: cp165172.hpdns.net: qqxnjvamvxwx@dyxyl.com X-Source: X-Source-Args: X-Source-Dir: X-BeenThere: gdb@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-bounces~public-inbox=simark.ca@sourceware.org Sender: "Gdb" >>>>> On Sat, 19 Oct 2024 09:35:40 +0200, Etienne Buira via Gdb said: > > I tried to debug memory corruption issue with gdb, using watchpoints, > and as the bug appeared rarely, i wish i could state "break on this > memloc write, if it is not this known good location". > > I searched the docs for conditions and convenience variables, but could > not find anything useful. > > Ideally, i would like to issue a command like: > condition WPNUM !(location path/to/myfile.c:42) > > If there is already a way to do this, i'd like to hear about it, or > please consider it as feature suggestion. You could use a condition like: $pc != where is the address of the instruction that changes the location. __Martin