From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29183 invoked by alias); 15 May 2009 14:16:31 -0000 Received: (qmail 29172 invoked by uid 22791); 15 May 2009 14:16:29 -0000 X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from web36208.mail.mud.yahoo.com (HELO web36208.mail.mud.yahoo.com) (209.191.68.234) by sourceware.org (qpsmtpd/0.43rc1) with SMTP; Fri, 15 May 2009 14:16:21 +0000 Received: (qmail 62026 invoked by uid 60001); 15 May 2009 14:16:19 -0000 Message-ID: <795073.59477.qm@web36208.mail.mud.yahoo.com> Received: from [124.125.223.139] by web36208.mail.mud.yahoo.com via HTTP; Fri, 15 May 2009 07:16:19 PDT Date: Fri, 15 May 2009 14:16:00 -0000 From: paawan oza Subject: Re: MMX & Floating point insn suport for reversible debugging To: Hui Zhu Cc: gdb ml 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: 2009-05/txt/msg00083.txt.bz2 Thank you for your inputs. I will try to post question more clearly : ) my question was : Do we need to record floating point flags (C0,C1,C2 and c3) along with floating point registers ? Regards, Oza. --- On Thu, 5/14/09, Hui Zhu wrote: > From: Hui Zhu > Subject: Re: MMX & Floating point insn suport for reversible debugging > To: "paawan oza" > Cc: "gdb ml" > Date: Thursday, May 14, 2009, 12:41 PM > On Thu, May 14, 2009 at 00:44, paawan > oza > wrote: > > > > I have gone through i387-tdep.c. > > and I have come up with following doubts. > > > > here I start adding floating point register > support. > > I think curerntly it records the memory > > > > so remaining thing for floating point is store > > registers st0 to st7. > > > > > >> > code to be added here... > >> > /* floats */ > >> > /* It just record the memory change > of > >> instrcution. */ > >> > case 0xd8: > >> > case 0xd9: > >> > case 0xda: > >> > case 0xdb: > >> > case 0xdc: > >> > case 0xdd: > >> > case 0xde: > >> > case 0xdf: > >> > > >> > > > do we need to collect affect FPU flags !! > > If gdb can output and set this flags, you need to do it. > And I suggest you post more clear information about your > question that > you know when you have question with it. It will make > people reply > you mail easyly, right? :) > > > > > and another thing is ; > > take floating point insn > > opcode mnemnic desc > > DE F9 FDIVP Divide ST(1) by ST(0), > > store result in ST(1), > and > > pop the register > stack. > > > > I do not think code is taking care of 2 bytes > floating > > instruction.. > > I suspoe ModR/M and SIB byte encoding is taken care > > with respect to floating point. > > Why you can't put the code for "DE F9" in: > >> > case 0xde: > > > Thanks, > Hui >