From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9654 invoked by alias); 4 Oct 2011 17:02:15 -0000 Received: (qmail 9585 invoked by uid 22791); 4 Oct 2011 17:02:13 -0000 X-SWARE-Spam-Status: No, hits=-7.2 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,SPF_HELO_PASS,TW_BJ 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; Tue, 04 Oct 2011 17:01:54 +0000 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p94H1qRp026005 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 4 Oct 2011 13:01:52 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id p94H1qSO028725; Tue, 4 Oct 2011 13:01:52 -0400 Received: from barimba (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id p94H1p4C028244; Tue, 4 Oct 2011 13:01:51 -0400 From: Tom Tromey To: Kevin Pouget Cc: gdb-patches@sourceware.org Subject: Re: [RFC - Python] New ObjFile event References: Date: Tue, 04 Oct 2011 17:02:00 -0000 In-Reply-To: (Kevin Pouget's message of "Tue, 4 Oct 2011 10:24:23 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain 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-10/txt/msg00100.txt.bz2 >>>>> "Kevin" == Kevin Pouget writes: Tom> Why not simply make the objfile object an attribute of the event? Tom> That seems cleaner to me. Kevin> We already discussed this point, but it was at the end of ... March :) Thanks for the reminder. I completely forgot about that. Kevin> I was ambivalent about this point too; I chose Kevin> "gdb.current_objfile()" because autoloading Kevin> (http://sourceware.org/gdb/current/onlinedocs/gdb/Auto_002dloading.html) Kevin> already does it this way, and the two features are pretty similar. I Kevin> felt that it would have been strange to access "gdb.current_objfile ()" Kevin> in one case, and sth like "event.new_objfile" in the other case Ok, I see. I think it is best to pass it as part of the event. It is ok with me if you also want to have it set the current objfile. Tom