From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16982 invoked by alias); 16 Mar 2010 18:06:48 -0000 Received: (qmail 16967 invoked by uid 22791); 16 Mar 2010 18:06:47 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from imr1.ericy.com (HELO imr1.ericy.com) (198.24.6.9) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 16 Mar 2010 18:06:40 +0000 Received: from eusaamw0707.eamcs.ericsson.se ([147.117.20.32]) by imr1.ericy.com (8.13.1/8.13.1) with ESMTP id o2GI9P15016612; Tue, 16 Mar 2010 13:09:25 -0500 Received: from EUSAACMS0703.eamcs.ericsson.se ([169.254.1.20]) by eusaamw0707.eamcs.ericsson.se ([147.117.20.32]) with mapi; Tue, 16 Mar 2010 14:06:22 -0400 From: Marc Khouzam To: Vladimir Prus , Tom Tromey , "gdb-patches@sourceware.org" Date: Tue, 16 Mar 2010 18:06:00 -0000 Subject: RE: [MI tracepoints 5/9] -break-passcount Message-ID: References: <201003141156.07046.vladimir@codesourcery.com> <201003161905.27202.vladimir@codesourcery.com> <201003162006.54958.vladimir@codesourcery.com> In-Reply-To: <201003162006.54958.vladimir@codesourcery.com> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2010-03/txt/msg00603.txt.bz2 > -----Original Message----- > From: gdb-patches-owner@sourceware.org=20 > [mailto:gdb-patches-owner@sourceware.org] On Behalf Of Vladimir Prus > Sent: March-16-10 1:07 PM > To: Tom Tromey; gdb-patches@sourceware.org > Subject: Re: [MI tracepoints 5/9] -break-passcount >=20 > On Tuesday 16 March 2010 19:23:22 Tom Tromey wrote: >=20 > > >>>>> "Volodya" =3D=3D Vladimir Prus writes: > >=20 > > Tom> It is odd to have a command named -break-passcount that can't=20 > > Tom> actually be used on breakpoints > >=20 > > Volodya> It can -- just not on all kinds of breakpoints. > >=20 > > Ok. Maybe you could explain how -break-passcount and=20 > -break-after are=20 > > different, without referring to "tracepoints" as something separate=20 > > from "breakpoints". >=20 > -break-after specifies how many initial hits of the=20 > breakpoint are to be ignored. >=20 > -break-passcount, ideally, after how many execution of=20 > breakpoint commands they stop being executed (and breakpoint=20 > becomes silently ignored) It would be nice to have this new -break-passcount also work for 'normal' breakpoints. The use case is the following: when setting a breakpoint in code that many threads go through, and while debugging in non-stop mode, a user may not want every thread to stop on the breakpoint, but only one thread (or N threads). This is special=20 to non-stop because many threads could hit in a very short amount of time, before the user can disable the bp manually.=20=20 With -break-passcount, we can tell GDB that "after N threads have been=20 stopped on this breakpoint, disable the bp". Thanks Marc