From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29597 invoked by alias); 1 Dec 2007 01:10:36 -0000 Received: (qmail 29589 invoked by uid 22791); 1 Dec 2007 01:10:36 -0000 X-Spam-Check-By: sourceware.org Received: from mail-out3.netspace.net.au (HELO mail.netspace.net.au) (203.10.110.76) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sat, 01 Dec 2007 01:10:30 +0000 Received: from [192.168.0.10] (220-253-43-50.VIC.netspace.net.au [220.253.43.50]) by mail.netspace.net.au (Postfix) with ESMTP id 449CC13783D for ; Sat, 1 Dec 2007 12:10:25 +1100 (EST) Message-ID: <4750B480.8060106@netspace.net.au> Date: Sat, 01 Dec 2007 01:10:00 -0000 From: Russell Shaw User-Agent: Thunderbird 1.5.0.2 (X11/20060501) MIME-Version: 1.0 CC: gdb@sources.redhat.com Subject: Re: Watchpoints with condition References: <200711301925.20196.vladimir@codesourcery.com> In-Reply-To: <200711301925.20196.vladimir@codesourcery.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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/msg00001.txt.bz2 Vladimir Prus wrote: > GDB presently allow a watchpoint to have a condition, and I wonder > what are the use-cases for that. > > If anybody has used watchpoint in condition in practice when debugging > real problem (as opposed to just playing with gdb, or making up > possible uses), can he share why it was needed? 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?