From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20619 invoked by alias); 1 Feb 2011 03:20:59 -0000 Received: (qmail 20610 invoked by uid 22791); 1 Feb 2011 03:20:58 -0000 X-SWARE-Spam-Status: No, hits=-0.7 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RFC_ABUSE_POST,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from nm9-vm0.bullet.mail.sp2.yahoo.com (HELO nm9-vm0.bullet.mail.sp2.yahoo.com) (98.139.91.196) by sourceware.org (qpsmtpd/0.43rc1) with SMTP; Tue, 01 Feb 2011 03:20:54 +0000 Received: from [98.139.91.66] by nm9.bullet.mail.sp2.yahoo.com with NNFMP; 01 Feb 2011 03:20:53 -0000 Received: from [98.139.91.56] by tm6.bullet.mail.sp2.yahoo.com with NNFMP; 01 Feb 2011 03:20:53 -0000 Received: from [127.0.0.1] by omp1056.mail.sp2.yahoo.com with NNFMP; 01 Feb 2011 03:20:52 -0000 Received: (qmail 15463 invoked by uid 60001); 1 Feb 2011 03:20:52 -0000 Message-ID: <258658.15169.qm@web112504.mail.gq1.yahoo.com> Received: from [123.237.143.185] by web112504.mail.gq1.yahoo.com via HTTP; Mon, 31 Jan 2011 19:20:51 PST References: <442684.38194.qm@web112512.mail.gq1.yahoo.com> <4D309B17.7020400@vmware.com> <610357.40561.qm@web112518.mail.gq1.yahoo.com> <4D47051A.4080609@vmware.com> Date: Tue, 01 Feb 2011 03:20:00 -0000 From: paawan oza Subject: Re: arm reversible execution query To: Michael Snyder Cc: "gdb@sourceware.org" In-Reply-To: <4D47051A.4080609@vmware.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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-02/txt/msg00000.txt.bz2 Hi Michael, thank you for your reply. I think you are referring to below line. in process_record. I386_RECORD_ARCH_LIST_ADD_REG (X86_RECORD_REIP_REGNUM); if (record_arch_list_add_end ()) return -1; I got it that it has to be saved explicitly by process record arch level. Thanks, Oza. ----- Original Message ---- From: Michael Snyder To: paawan oza Cc: "gdb@sourceware.org" Sent: Tue, February 1, 2011 12:23:14 AM Subject: Re: arm reversible execution query 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?