From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15592 invoked by alias); 9 May 2009 14:45:00 -0000 Received: (qmail 15489 invoked by uid 22791); 9 May 2009 14:44:58 -0000 X-SWARE-Spam-Status: No, hits=-1.9 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; Sat, 09 May 2009 14:44:53 +0000 Received: (qmail 79602 invoked by uid 60001); 9 May 2009 14:44:50 -0000 Message-ID: <866937.71751.qm@web36208.mail.mud.yahoo.com> Received: from [123.238.26.54] by web36208.mail.mud.yahoo.com via HTTP; Sat, 09 May 2009 07:44:50 PDT Date: Sat, 09 May 2009 14:45:00 -0000 From: paawan oza Subject: Re: MMX and floating point insn suport for reversible debugging To: Hui Zhu Cc: Thiago Jung Bauermann , gdb ml , Pedro Alves , Marc Khouzam , Michael Snyder , Eli Zaretskii , Mark Kettenis 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/msg00050.txt.bz2 Hi, yes. I guess, MMX support needs to be added here,=20 case 0x0f06: break; /* MMX/SSE/SSE2/PNI support */ /* XXX */=20 but before I would start adding floating point support. I have 2 doubts: -> in function record_arch_list_add_reg we are doing: rec->u.reg.val =3D (gdb_byte *) xmalloc (MAX_REGISTER_SIZE); we are allocating 128 bytes..... but I suppose only SSE extensions can fully utilize the memory... for rest of the registers, are not we allocating more memory than required = for record ? -> SSE support is not there in linux krenel (ptrace), I also read in some p= iece of comments also. but SSE support (PT_GETXMMREGS) is suported in openbsd. with that sense do we need to add SSE/SSE2/SSE3/SSE4=20 support in i386-tdep.c generically ? (of coursse our first priority is to = add floating point suport, but I am querying out of my curiousity) Regards, Oza. --- On Thu, 5/7/09, Hui Zhu wrote: > From: Hui Zhu > Subject: Re: MMX and floating point insn suport for reversible debugging > To: "paawan oza" > Cc: "Thiago Jung Bauermann" , "gdb ml" , "Pedro Alves" , "Marc Khouzam" , "Michael Snyder" , "Eli Zaretskii" , "Mark Kettenis" > Date: Thursday, May 7, 2009, 8:24 AM > On Thu, May 7, 2009 at 02:02, paawan > oza > wrote: > > > > Hi Hui, > > > > I have started understanding and working on point-1. > > I have some questions. please let me know my > understanding is correct ? > > > > 1) i386-tdep.c is the one which has been done for > record-replay. which basically takes care of disassembling > insns... > > but I see some code regarding MMX and x87FPU already > available. > > may I know exactly, what support is missing ? > > >=20 > =A0 =A0 case 0x0f06: > =A0 =A0 =A0 break; >=20 > =A0 =A0 =A0 /* MMX/SSE/SSE2/PNI support */ > =A0 =A0 =A0 /* XXX */ >=20 > =A0 =A0 default: >=20 > Your mean is this part? >=20 >=20 > And I suggest you can begin with float point insn > first.=A0 It doesn't > record float point reg change. >=20 >=20 > Thanks, > Hui >=20