From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11566 invoked by alias); 1 Sep 2011 10:18:41 -0000 Received: (qmail 11558 invoked by uid 22791); 1 Sep 2011 10:18:40 -0000 X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,TW_BJ X-Spam-Check-By: sourceware.org Received: from fencepost.gnu.org (HELO fencepost.gnu.org) (140.186.70.10) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 01 Sep 2011 10:18:26 +0000 Received: from eliz by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1Qz4Lp-0007E1-Kl; Thu, 01 Sep 2011 06:18:25 -0400 Date: Thu, 01 Sep 2011 11:01:00 -0000 Message-Id: From: Eli Zaretskii To: Kevin Pouget CC: tromey@redhat.com, pmuldoon@redhat.com, gdb-patches@sourceware.org In-reply-to: (message from Kevin Pouget on Thu, 1 Sep 2011 11:17:51 +0200) Subject: Re: [RFC - Python] New ObjFile event Reply-to: Eli Zaretskii References: 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-09/txt/msg00010.txt.bz2 > From: Kevin Pouget > Date: Thu, 1 Sep 2011 11:17:51 +0200 > Cc: pmuldoon@redhat.com, gdb-patches@sourceware.org > > This event indicates that the inferior or one of its threads has received as > signal. @code{gdb.SignalEvent} has the following attributes: > > +@item events.newobjfile > +Emits @code{gdb.NewObjFileEvent} which indicates that a new object-file has > +been loaded by @value{GDBN}. > + > +During the callback, ``current objfile'' will be set to the new object file. > + > @table @code > @defivar SignalEvent stop_signal > A string representing the signal received by the inferior. A list of possible > @@ -22949,10 +22955,10 @@ The following objfile-related functions are available in the The addition doesn't look right: shouldn't it be _after_ the following @table line? events.newobjfile is an attribute of the same object as stop_signal, right? > +When auto-loading a Python script (@pxref{Auto-loading}) and during new > +object-file callbacks, @value{GDBN} sets the ``current objfile'' to the Why did you use "new" here? New in relation to what? Thanks.