From patchwork Mon Dec 15 08:33:25 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yao Qi X-Patchwork-Id: 4252 Received: (qmail 5490 invoked by alias); 15 Dec 2014 08:33:49 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 5481 invoked by uid 89); 15 Dec 2014 08:33:49 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.7 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 X-HELO: relay1.mentorg.com Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 15 Dec 2014 08:33:48 +0000 Received: from svr-orw-fem-02x.mgc.mentorg.com ([147.34.96.206] helo=SVR-ORW-FEM-02.mgc.mentorg.com) by relay1.mentorg.com with esmtp id 1Y0R67-0003gt-VW from Yao_Qi@mentor.com ; Mon, 15 Dec 2014 00:33:44 -0800 Received: from GreenOnly (147.34.91.1) by svr-orw-fem-02.mgc.mentorg.com (147.34.96.168) with Microsoft SMTP Server id 14.3.181.6; Mon, 15 Dec 2014 00:33:43 -0800 From: Yao Qi To: Doug Evans CC: Nick Bull , gdb-patches , Pedro Alves Subject: Re: [PATCH v8] Events when inferior is modified References: <5419C597.4000300@gmail.com> <542C3F4D.70104@redhat.com> <5441432B.5040103@gmail.com> <21569.29405.219428.940000@ruffy.mtv.corp.google.com> <21569.30068.738159.240720@ruffy.mtv.corp.google.com> <5447A5A1.7040708@gmail.com> <546A3AD5.7020508@gmail.com> <546B75B9.1050407@gmail.com> <546DC41F.8020209@gmail.com> <21630.4311.741887.195958@ruffy2.mtv.corp.google.com> Date: Mon, 15 Dec 2014 16:33:25 +0800 In-Reply-To: <21630.4311.741887.195958@ruffy2.mtv.corp.google.com> (Doug Evans's message of "Tue, 2 Dec 2014 11:19:51 -0800") Message-ID: <87r3w1tiqy.fsf@codesourcery.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 X-IsSubscribed: yes Doug Evans writes: > diff --git a/gdb/NEWS b/gdb/NEWS > index d38266f..7262502 100644 > --- a/gdb/NEWS > +++ b/gdb/NEWS > @@ -1,6 +1,16 @@ > What has changed in GDB? > (Organized release by release) > > +* Python Scripting > + > + New events which are triggered when GDB modifies the state of the > + inferior. > + > + ** gdb.events.inferior_call_pre: Function call is about to be made. > + ** gdb.events.inferior_call_post: Function call has just been made. > + ** gdb.events.memory_changed: A memory location has been altered. > + ** gdb.events.register_changed: A register has been altered. > + > *** Changes since GDB 7.8 These entries should go to "Changes since GDB 7.8" section. This patch moves them there. diff --git a/gdb/NEWS b/gdb/NEWS index 168e810..75a05c3 100644 --- a/gdb/NEWS +++ b/gdb/NEWS @@ -1,16 +1,6 @@ What has changed in GDB? (Organized release by release) -* Python Scripting - - New events which are triggered when GDB modifies the state of the - inferior. - - ** gdb.events.inferior_call_pre: Function call is about to be made. - ** gdb.events.inferior_call_post: Function call has just been made. - ** gdb.events.memory_changed: A memory location has been altered. - ** gdb.events.register_changed: A register has been altered. - *** Changes since GDB 7.8 * GDB now supports hardware watchpoints on x86 GNU Hurd. @@ -30,6 +20,14 @@ ** You can now add attributes to gdb.Objfile and gdb.Progspace objects. ** New function gdb.lookup_objfile. + New events which are triggered when GDB modifies the state of the + inferior. + + ** gdb.events.inferior_call_pre: Function call is about to be made. + ** gdb.events.inferior_call_post: Function call has just been made. + ** gdb.events.memory_changed: A memory location has been altered. + ** gdb.events.register_changed: A register has been altered. + * New Python-based convenience functions: ** $_caller_is(name [, number_of_frames])