From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7464 invoked by alias); 2 Sep 2009 12:01:06 -0000 Received: (qmail 7268 invoked by uid 22791); 2 Sep 2009 12:01:05 -0000 X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail-px0-f188.google.com (HELO mail-px0-f188.google.com) (209.85.216.188) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 02 Sep 2009 12:01:00 +0000 Received: by pxi26 with SMTP id 26so775511pxi.13 for ; Wed, 02 Sep 2009 05:00:58 -0700 (PDT) MIME-Version: 1.0 Received: by 10.142.7.10 with SMTP id 10mr155914wfg.137.1251892858087; Wed, 02 Sep 2009 05:00:58 -0700 (PDT) In-Reply-To: <8363c2a8we.fsf@gnu.org> References: <8363cefkkp.fsf@gnu.org> <83fxbhdofo.fsf@gnu.org> <83skfecvmz.fsf@gnu.org> <83hbvo9blv.fsf@gnu.org> <8363c2a8we.fsf@gnu.org> From: Hui Zhu Date: Wed, 02 Sep 2009 12:01:00 -0000 Message-ID: Subject: Re: [RFA/RFC Prec] Add process record skip 6/6 (doc) To: Eli Zaretskii Cc: gdb-patches@sourceware.org, msnyder@vmware.com, green@moxielogic.com Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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: 2009-09/txt/msg00052.txt.bz2 On Wed, Sep 2, 2009 at 01:10, Eli Zaretskii wrote: >> From: Hui Zhu >> Date: Tue, 1 Sep 2009 16:56:42 +0800 >> Cc: gdb-patches@sourceware.org, msnyder@vmware.com, green@moxielogic.com >> >> I think this idea is not bad. =A0But when user set a simple_function to >> GDB, check if this function is really a simple function or not is not >> easy. > > Why should GDB care? =A0Let the user care. > >> What about keep this idea and add special patch for it when gdb >> support record skip? > > If no one else is concerned about this, I can live with that. Please don't worry about it. I will post it to wiki. > >> +beginning of a function. =A0When this breaks break, if > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ^^^^^^^^^^^^^^^^^= ^^^^^ > "When this breakpoint breaks" > > Otherwise, fine. > Thanks a lot. Hui --- doc/gdb.texinfo | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) --- a/doc/gdb.texinfo +++ b/doc/gdb.texinfo @@ -5214,6 +5214,31 @@ When record target runs in replay mode ( subsequent execution log and begin to record a new execution log starting from the current address. This means you will abandon the previously recorded ``future'' and begin recording a new ``future''. + +@kindex record skip +@kindex rec skip +@item record skip +The record skip entry is a special breakpoint. When the process +record and replay target start, it will be inserted to the +beginning of a function. When this breakpoint breaks, if +@value{GDBN} is in record mode, refrain from recording skip record all +the execution log of this function's instructions and only record the +modifications of memory and registers by this function. +This command shows the status of record skipping. + +Only some standard functions are currently supported by the +@code{record skip} command; type the command without arguments to +see the full list. + +@kindex record skip disable +@kindex rec skip disable +@item record skip disable @var{id} +Disable the specified record skip entry (or all record skip entries). + +@kindex record skip enable +@kindex rec skip enable +@item record skip enable @var{id} +Enable the specified record skip entry (or all record skip entries). @end table