From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3153 invoked by alias); 15 Oct 2008 07:24:07 -0000 Received: (qmail 3142 invoked by uid 22791); 15 Oct 2008 07:24:06 -0000 X-Spam-Check-By: sourceware.org Received: from mtaout7.012.net.il (HELO mtaout7.012.net.il) (84.95.2.19) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 15 Oct 2008 07:23:26 +0000 Received: from HOME-C4E4A596F7 ([77.127.24.3]) by i-mtaout7.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0K8R009K9R5HOU80@i-mtaout7.012.net.il> for gdb-patches@sourceware.org; Wed, 15 Oct 2008 09:22:30 +0200 (IST) Date: Wed, 15 Oct 2008 07:24:00 -0000 From: Eli Zaretskii Subject: Re: [reverse RFC] Add documentation for process record and replay In-reply-to: X-012-Sender: halo1@inter.net.il To: teawater Cc: gdb-patches@sourceware.org, msnyder@vmware.com Reply-to: Eli Zaretskii Message-id: 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: 2008-10/txt/msg00362.txt.bz2 > Date: Wed, 15 Oct 2008 13:50:30 +0800 > From: teawater > Cc: gdb-patches@sourceware.org, msnyder@vmware.com > > >> +When this target is in use, if the next instruction to be executed is in the > >> +execution log, @value{GDBN} will debug in replay mode so that all the > >> +execution events are taken from the execution log. Otherwise, @value{GDBN} > >> +will debug in record mode and record the execution log while executing > >> +normally. > > > > What exactly is the "execution log"? You talk about "next > > instruction", which seems to hint that the log records the machine > > instructions executed by the inferior -- is that true? If so, what > > are the "execution events" you mention here -- are they just a synonym > > for the "instructions", or are they something else? > > > > "execution log" mean is before a instruction execute, record the > values of register and memory that will be change in this instruction > to a list. So you record the values of registers and memory AND the instruction? The frequent use of ``instruction'' and ``insn'' is a clear hint to this; if as a matter of fact the instructions are not recorded, we should modify the text to eliminate those hints.