From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31286 invoked by alias); 30 Nov 2007 23:49:02 -0000 Received: (qmail 31278 invoked by uid 22791); 30 Nov 2007 23:49:02 -0000 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 30 Nov 2007 23:48:56 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id 05E7C98248 for ; Fri, 30 Nov 2007 23:48:55 +0000 (GMT) Received: from caradoc.them.org (22.svnf5.xdsl.nauticom.net [209.195.183.55]) by nan.false.org (Postfix) with ESMTP id E34E098245 for ; Fri, 30 Nov 2007 23:48:54 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.68) (envelope-from ) id 1IyFbK-0007DQ-2A for gdb@sourceware.org; Fri, 30 Nov 2007 18:48:54 -0500 Date: Fri, 30 Nov 2007 23:49:00 -0000 From: Daniel Jacobowitz To: gdb@sourceware.org Subject: Re: Watchpoints with condition Message-ID: <20071130234853.GA27583@caradoc.them.org> Mail-Followup-To: gdb@sourceware.org References: <200711301925.20196.vladimir@codesourcery.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.15 (2007-04-09) X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2007-11/txt/msg00304.txt.bz2 On Fri, Nov 30, 2007 at 03:30:21PM -0800, Jim Blandy wrote: > Isn't that equivalent to 'watch foo == 1'? Not quite. watch foo == 1 stops when foo becomes 1 or non-1. watch foo if foo == 1 stops only when foo becomes 1. -- Daniel Jacobowitz CodeSourcery