From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 635 invoked by alias); 13 May 2009 16:44:15 -0000 Received: (qmail 625 invoked by uid 22791); 13 May 2009 16:44:14 -0000 X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from web36204.mail.mud.yahoo.com (HELO web36204.mail.mud.yahoo.com) (209.191.68.230) by sourceware.org (qpsmtpd/0.43rc1) with SMTP; Wed, 13 May 2009 16:44:06 +0000 Received: (qmail 12557 invoked by uid 60001); 13 May 2009 16:44:04 -0000 Message-ID: <944401.11353.qm@web36204.mail.mud.yahoo.com> Received: from [123.237.140.96] by web36204.mail.mud.yahoo.com via HTTP; Wed, 13 May 2009 09:44:03 PDT Date: Wed, 13 May 2009 16:44: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=iso-8859-1 Content-Transfer-Encoding: quoted-printable 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/msg00071.txt.bz2 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 !! 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. please clarify. Regards, Oza. --- On Wed, 5/13/09, Hui Zhu wrote: > From: Hui Zhu > Subject: Re: MMX & Floating point insn suport for reversible debugging > To: "paawan oza" > Cc: "gdb ml" > Date: Wednesday, May 13, 2009, 10:07 PM > Maybe you can read i387-tdep.c. >=20 > Thanks, > Hui >=20 > On Thu, May 14, 2009 at 00:17, paawan oza > wrote: > > > > Hi Hui, > > > > file : linux-tdep.c > > function : i386_process_record > > > > here I start adding floating point register support. > > I think it records the memory > > > > so remaining thing for floating point is store > registers st0 to st7. > > > > > > code to be added here... > > =A0 /* floats */ > > =A0 =A0 =A0/* It just record the memory change of > instrcution. */ > > =A0 =A0case 0xd8: > > =A0 =A0case 0xd9: > > =A0 =A0case 0xda: > > =A0 =A0case 0xdb: > > =A0 =A0case 0xdc: > > =A0 =A0case 0xdd: > > =A0 =A0case 0xde: > > =A0 =A0case 0xdf: > > > > > > I am not sure ptrace will give FPU affected flags !!! > > > > and another thing is ; > > take floating point insn > > opcode =A0mnemnic =A0 desc > > DE F9 =A0 FDIVP =A0 =A0 Divide ST(1) by ST(0), > > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0store 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. > > > > please clarify. > > > > Regards, > > Oza. > > > > > > > > > > > > > > > > > > >=20