From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2504 invoked by alias); 25 May 2008 20:39:44 -0000 Received: (qmail 2489 invoked by uid 22791); 25 May 2008 20:39:43 -0000 X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sun, 25 May 2008 20:39:26 +0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id m4PKdLZh027197; Sun, 25 May 2008 16:39:21 -0400 Received: from pobox.corp.redhat.com (pobox.corp.redhat.com [10.11.255.20]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id m4PKdLRd005140; Sun, 25 May 2008 16:39:21 -0400 Received: from opsy.redhat.com (vpn-10-14.bos.redhat.com [10.16.10.14]) by pobox.corp.redhat.com (8.13.1/8.13.1) with ESMTP id m4PKdKbh019473; Sun, 25 May 2008 16:39:21 -0400 Received: by opsy.redhat.com (Postfix, from userid 500) id D9248508079; Sun, 25 May 2008 14:39:19 -0600 (MDT) To: Thiago Jung Bauermann , gdb-patches@sourceware.org Subject: Re: [RFC][patch 3/9] export hooks mechanism to Python References: <20080429155212.444237503@br.ibm.com> <20080429155304.641779989@br.ibm.com> <20080430162140.GA3801@adacore.com> From: Tom Tromey Reply-To: tromey@redhat.com X-Attribution: Tom Date: Tue, 27 May 2008 18:22:00 -0000 In-Reply-To: (Tom Tromey's message of "Wed\, 30 Apr 2008 13\:51\:15 -0600") Message-ID: User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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-05/txt/msg00704.txt.bz2 >>>>> "Joel" == Joel Brobecker writes: Joel> Since you need to be able to write some python code that "reacts to Joel> *GDB events*", I think that observers are exactly what you are looking Joel> for. Tom> Thanks, I will look at that. In case anybody is wondering about the status of this, today I changed the Python support to use observers rather than events. I deleted some old event-based stuff that I think was not in use, and added a couple observers. Tom