From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id t0UvCIcMGmdr5xgAWB0awg (envelope-from ) for ; Thu, 24 Oct 2024 04:59:51 -0400 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=xj9+xiQy; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id E22251E38C; Thu, 24 Oct 2024 04:59:50 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-6.8 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,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 A01441E38A for ; Thu, 24 Oct 2024 04:59:49 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 1EEBA3858406 for ; Thu, 24 Oct 2024 08:59:49 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1EEBA3858406 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1729760389; bh=ZEI5EeXdCf/wAUtja/ufgMQBXK/INEIHi5QJmzG++Uk=; h=Date:To:Cc:Subject:References:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=xj9+xiQy6IeOZnPiBKposrzR0J4wsFVpOVg9MBqFgv3ayOR4XBPMkZ+jSdJSkpXJw 9lFqWrkTHikfTMQNl1XHy+d+uohIqcEtgE8so8pDYtwmgxtDyS7kfqL8Fp7XcDN0KH bvL6m9d9xqanf/iCXsLjcn18pJin2TvOLdlDlgPI= Received: from smtp2-g21.free.fr (smtp2-g21.free.fr [212.27.42.2]) by sourceware.org (Postfix) with ESMTPS id 531623858D39 for ; Thu, 24 Oct 2024 08:59:05 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 531623858D39 ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 531623858D39 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1729760347; cv=none; b=pebMK2Xe4xmpPYcHnAI60UjhHZThObPqtjV4aiDR3ppjMyyRCURBAzdwMx4HZszUWAuYBtTwK4fptf0bFJDF+Fxp+qkLGnn65k7QJKWesix/ZUNcbNgkKOKElMFYZUngh9YzqFrX1aY+xZprzLovQabUI6ElPWYcQF66DZARhxk= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1729760347; c=relaxed/simple; bh=gVPYmHZ8UyoC8m6VhdF0lW2mOPzXSCoOE4Hao4RCDhw=; h=Date:From:To:Subject:Message-ID:MIME-Version; b=SvBoq+YtzOIR92X8YIMv6cqX9XxZ0bz/DegDbg928IqQG+4gq71uSnPazVAl+mbzIaZRb04MuVn/izwDo1tjyvDvNrhNZo1mUe3F9tr6c18KKGKUfjMVH3Fk6cjLVo9TGw3f36dCJpsIuB87lhCWF16Uus7djRpcDsOmOeOYi5w= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from localhost (unknown [82.64.135.138]) by smtp2-g21.free.fr (Postfix) with ESMTP id 11F142003D6; Thu, 24 Oct 2024 10:59:00 +0200 (CEST) Received: by localhost (Postfix, from userid 1000) id 5111840042; Thu, 24 Oct 2024 10:57:20 +0200 (CEST) Date: Thu, 24 Oct 2024 10:57:20 +0200 To: Martin Simmons Cc: Etienne Buira , gdb@sourceware.org Subject: Re: Feature suggestion: location conditioned watchpoint Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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: , From: Etienne Buira via Gdb Reply-To: Etienne Buira Errors-To: gdb-bounces~public-inbox=simark.ca@sourceware.org Sender: "Gdb" On Sat, Oct 19, 2024 at 02:19:08PM +0100, Martin Simmons wrote: > >>>>> 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 Hi Martin, thank you, sorry to have missed such an obvious way. Regards.