From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10677 invoked by alias); 4 Dec 2007 04:23:44 -0000 Received: (qmail 10668 invoked by uid 22791); 4 Dec 2007 04:23:44 -0000 X-Spam-Check-By: sourceware.org Received: from romy.inter.net.il (HELO romy.inter.net.il) (213.8.233.24) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 04 Dec 2007 04:23:37 +0000 Received: from HOME-C4E4A596F7 (IGLD-84-228-236-66.inter.net.il [84.228.236.66]) by romy.inter.net.il (MOS 3.7.3-GA) with ESMTP id JNS79073 (AUTH halo1); Tue, 4 Dec 2007 06:23:16 +0200 (IST) Date: Tue, 04 Dec 2007 04:23:00 -0000 Message-Id: From: Eli Zaretskii To: Jim Blandy CC: gdb@sourceware.org In-reply-to: (message from Jim Blandy on Mon, 03 Dec 2007 15:07:19 -0800) Subject: Re: Watchpoints with condition Reply-to: Eli Zaretskii References: <200711301925.20196.vladimir@codesourcery.com> <20071130234853.GA27583@caradoc.them.org> 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-12/txt/msg00019.txt.bz2 > Cc: gdb@sourceware.org > From: Jim Blandy > Date: Mon, 03 Dec 2007 15:07:19 -0800 > > In the use case you mention, why wouldn't 'watch v == X'; 'watch v == > Y'; etc. have worked for you? You would have gotten more hits than > you'd like, but only twice as many --- is that right? It would have shown me hits I don't want to see, yes. And it is more natural to write "watch X if X == 1" than what you suggest.