From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17554 invoked by alias); 14 Mar 2011 17:39:10 -0000 Received: (qmail 17469 invoked by uid 22791); 14 Mar 2011 17:39:09 -0000 X-SWARE-Spam-Status: No, hits=-6.0 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 14 Mar 2011 17:39:04 +0000 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p2EHcxst020654 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 14 Mar 2011 13:38:59 -0400 Received: from localhost.localdomain (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id p2EHcvOO016701; Mon, 14 Mar 2011 13:38:57 -0400 From: Phil Muldoon To: Tom Tromey , eliz@gnu.org Cc: Doug Evans , gdb-patches@sourceware.org Subject: Re: [patch] [python] Implement stop_p for gdb.Breakpoint References: Reply-to: pmuldoon@redhat.com X-URL: http://www.redhat.com Date: Mon, 14 Mar 2011 17:56:00 -0000 In-Reply-To: (Tom Tromey's message of "Mon, 14 Mar 2011 08:03:34 -0600") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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: 2011-03/txt/msg00739.txt.bz2 Tom Tromey writes: >>>>>> "Phil" == Phil Muldoon writes: > > Phil> I remember a bug about this in 2.5 that did accept const definitions > Phil> but would later die. (And a patch was checked in. Can't remember by > Phil> who though). Anyway, Python 2.6 rejects all of the above with: > > Thanks, I never remember that. It is ok without that const. > > Could you file a bug against Python, like Jan suggested? > Sure. And I have committed the code and doc patches per previous approval. Thanks. Should I also write something on how Parameters now have callback functions too? Eli, Here is a NEWS patch. Cheers, Phil -- diff --git a/gdb/NEWS b/gdb/NEWS index fb36383..826bad3 100644 --- a/gdb/NEWS +++ b/gdb/NEWS @@ -38,6 +38,10 @@ * Python scripting + ** Breakpoints can now be sub-classed in Python, and in particular + you may implement a 'stop' function that is executed each time + the inferior reaches that breakpoint. + ** New function gdb.lookup_global_symbol looks up a global symbol. ** GDB values in Python are now callable if the value represents a