From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11972 invoked by alias); 21 Mar 2011 15:11:14 -0000 Received: (qmail 11923 invoked by uid 22791); 21 Mar 2011 15:11:11 -0000 X-SWARE-Spam-Status: No, hits=-0.4 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Received: from mail-vw0-f41.google.com (HELO mail-vw0-f41.google.com) (209.85.212.41) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 21 Mar 2011 15:11:03 +0000 Received: by vws4 with SMTP id 4so6317623vws.0 for ; Mon, 21 Mar 2011 08:11:01 -0700 (PDT) Received: by 10.220.62.69 with SMTP id w5mr1131654vch.237.1300720260207; Mon, 21 Mar 2011 08:11:00 -0700 (PDT) MIME-Version: 1.0 Received: by 10.220.200.3 with HTTP; Mon, 21 Mar 2011 08:10:40 -0700 (PDT) In-Reply-To: References: From: Kevin Pouget Date: Mon, 21 Mar 2011 15:11:00 -0000 Message-ID: Subject: Re: GDB Python API: stop/continue after breakpoint To: pmuldoon@redhat.com Cc: gdb@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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: 2011-03/txt/msg00110.txt.bz2 > (gdb) py b.silent =3D True very nice! I was just reading an old post http://sourceware.org/ml/gdb/2007-04/msg00127.html about a plugin vs scripting interface, Python finally get the point, it's now easier to write a Python script which handles breakpoints than a GDB patch! > There might be a case for setting the breakpoint to 'silent' in the > breakpoint constructor: > > python b =3D gdb.Breakpoint("hello.c:5", internal=3DTrue, silent=3DTrue) > > or just making internal breakpoints silent by default. > > I'll implement either. =A0What do you think? from my perspective, _internal breakpoints_ should be silent by default, because they're 'internal', as their name says. Option 1) is quite similar `b.silent`, so it's up to you Cordially, Kevin