From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26213 invoked by alias); 31 Jan 2011 18:53:25 -0000 Received: (qmail 26205 invoked by uid 22791); 31 Jan 2011 18:53:24 -0000 X-SWARE-Spam-Status: No, hits=-4.8 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from smtp-outbound-1.vmware.com (HELO smtp-outbound-1.vmware.com) (65.115.85.69) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 31 Jan 2011 18:53:18 +0000 Received: from mailhost4.vmware.com (mailhost4.vmware.com [10.16.67.124]) by smtp-outbound-1.vmware.com (Postfix) with ESMTP id EEC131305E; Mon, 31 Jan 2011 10:53:14 -0800 (PST) Received: from msnyder-server.eng.vmware.com (promd-2s-dhcp138.eng.vmware.com [10.20.124.138]) by mailhost4.vmware.com (Postfix) with ESMTP id E51B3C9FA6; Mon, 31 Jan 2011 10:53:14 -0800 (PST) Message-ID: <4D47051A.4080609@vmware.com> Date: Mon, 31 Jan 2011 18:53:00 -0000 From: Michael Snyder User-Agent: Thunderbird 2.0.0.24 (X11/20101201) MIME-Version: 1.0 To: paawan oza CC: "gdb@sourceware.org" Subject: Re: arm reversible execution query References: <442684.38194.qm@web112512.mail.gq1.yahoo.com> <4D309B17.7020400@vmware.com> <610357.40561.qm@web112518.mail.gq1.yahoo.com> In-Reply-To: <610357.40561.qm@web112518.mail.gq1.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2011-01/txt/msg00117.txt.bz2 paawan oza wrote: > > Hi all, > > I have been wroking on arm-reversible implementation and doing arm insn part. > I am done with framework, and supporting 30-40% on insns till now. > when I simply test on arm board, > I find that, > > all the memory and registers are replayed correctly and recording is happening. > but, > do I need to save Program counter explicitly ? > doesnt gdb reversible framework take care of changing pc when I apply > reverse-stepi/nexti command ? > > as i386-tdep.c, does not seem to be saving PC explicitly. > > please clarify. i386-tdep.c does save the PC ($eip), at the end of function i386_process_record. If you don't save the PC, how can you do a reverse jump?