From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28969 invoked by alias); 13 May 2009 16:38:19 -0000 Received: (qmail 28948 invoked by uid 22791); 13 May 2009 16:38:14 -0000 X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org Received: from ti-out-0910.google.com (HELO ti-out-0910.google.com) (209.85.142.185) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 13 May 2009 16:38:01 +0000 Received: by ti-out-0910.google.com with SMTP id a1so79341tib.12 for ; Wed, 13 May 2009 09:37:57 -0700 (PDT) MIME-Version: 1.0 Received: by 10.110.31.5 with SMTP id e5mr89613tie.35.1242232677685; Wed, 13 May 2009 09:37:57 -0700 (PDT) In-Reply-To: <407871.4297.qm@web36202.mail.mud.yahoo.com> References: <407871.4297.qm@web36202.mail.mud.yahoo.com> Date: Wed, 13 May 2009 16:38:00 -0000 Message-ID: Subject: Re: MMX & Floating point insn suport for reversible debugging From: Hui Zhu To: paawan oza Cc: gdb ml 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/msg00070.txt.bz2 Maybe you can read i387-tdep.c. Thanks, Hui 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 reg= ister 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 float= ing point. > > please clarify. > > Regards, > Oza. > > > > > > > > >