From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3526 invoked by alias); 17 Jun 2008 16:14:17 -0000 Received: (qmail 3458 invoked by uid 22791); 17 Jun 2008 16:14:16 -0000 X-Spam-Check-By: sourceware.org Received: from e31.co.us.ibm.com (HELO e31.co.us.ibm.com) (32.97.110.149) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 17 Jun 2008 16:13:54 +0000 Received: from d03relay05.boulder.ibm.com (d03relay05.boulder.ibm.com [9.17.195.107]) by e31.co.us.ibm.com (8.13.8/8.13.8) with ESMTP id m5HGDqd7017400 for ; Tue, 17 Jun 2008 12:13:52 -0400 Received: from d03av01.boulder.ibm.com (d03av01.boulder.ibm.com [9.17.195.167]) by d03relay05.boulder.ibm.com (8.13.8/8.13.8/NCO v9.0) with ESMTP id m5HGDkmq044598 for ; Tue, 17 Jun 2008 10:13:46 -0600 Received: from d03av01.boulder.ibm.com (loopback [127.0.0.1]) by d03av01.boulder.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id m5HGDhRj009623 for ; Tue, 17 Jun 2008 10:13:43 -0600 Received: from linux.ibm.com (imap.raleigh.ibm.com [9.37.253.145]) by d03av01.boulder.ibm.com (8.12.11.20060308/8.12.11) with ESMTP id m5HGDgkf009589; Tue, 17 Jun 2008 10:13:43 -0600 Received: from 9.8.0.172 ([9.8.0.172]) by imap.linux.ibm.com (Horde MIME library) with HTTP; Tue, 17 Jun 2008 12:13:42 -0400 Message-ID: <20080617121342.k0o647casks4w4c4@imap.linux.ibm.com> Date: Tue, 17 Jun 2008 18:13:00 -0000 From: Thiago Jung Bauermann To: Daniel Jacobowitz Cc: Tom Tromey , gdb-patches@sourceware.org Subject: Re: [RFC][patch 3/9] export hooks mechanism to Python References: <20080615183110.xi9zc6qx2iokwwsg@imap.linux.ibm.com> <20080616014219.GA9913@caradoc.them.org> In-Reply-To: <20080616014219.GA9913@caradoc.them.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.1.3) 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: 2008-06/txt/msg00318.txt.bz2 Zitat von Daniel Jacobowitz : > On Sun, Jun 15, 2008 at 04:35:19PM -0600, Tom Tromey wrote: >> Funnily enough I was just thinking about this code today. >> In particular I was wondering if we ought to expose observers to >> Python more directly -- say by having a generic way for a Python >> object to register with a given observer. > > I don't think that's a good idea; it ties the Python exposed > interfaces too closely to GDB's internal interfaces. I don't want > hacking on GDB to break Python programs unexpectedly. Observers look like a useful feature in GDB to be used by scripts, IMHO we should think about ways to make it available to python, and consider turning it into a stable exported interface... -- []'s Thiago Jung Bauermann Software Engineer IBM Linux Technology Center