From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1476 invoked by alias); 1 Dec 2007 09:16:05 -0000 Received: (qmail 1468 invoked by uid 22791); 1 Dec 2007 09:16:05 -0000 X-Spam-Check-By: sourceware.org Received: from heller.inter.net.il (HELO heller.inter.net.il) (213.8.233.23) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sat, 01 Dec 2007 09:15:58 +0000 Received: from HOME-C4E4A596F7 (IGLD-84-228-245-225.inter.net.il [84.228.245.225]) by heller.inter.net.il (MOS 3.7.3a-GA) with ESMTP id EGJ11521 (AUTH halo1); Sat, 1 Dec 2007 11:15:45 +0200 (IST) Date: Sat, 01 Dec 2007 09:16:00 -0000 Message-Id: From: Eli Zaretskii To: Michael Snyder CC: rjshaw@netspace.net.au, gdb@sources.redhat.com In-reply-to: <1196472771.2501.184.camel@localhost.localdomain> (message from Michael Snyder on Fri, 30 Nov 2007 17:32:51 -0800) Subject: Re: Watchpoints with condition Reply-to: Eli Zaretskii References: <200711301925.20196.vladimir@codesourcery.com> <4750B480.8060106@netspace.net.au> <1196472771.2501.184.camel@localhost.localdomain> 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/msg00004.txt.bz2 > From: Michael Snyder > Cc: gdb@sources.redhat.com > Date: Fri, 30 Nov 2007 17:32:51 -0800 > > > I frequently need to enable or set a breakpoint only if another > > previous point in the program has been passed. How do i do that? > > > set $passed_milestone = 0 > break milestone_func > commands > silent > set $passed_milestone = 1 > end > break conditional_func if ($passed_milestone) Or just tbreak milestone_func commands silent break conditional_func continue end