From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13175 invoked by alias); 22 Mar 2010 16:03:43 -0000 Received: (qmail 12880 invoked by uid 22791); 22 Mar 2010 16:03:40 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_HELO_PASS X-Spam-Check-By: sourceware.org Received: from smtp-out.google.com (HELO smtp-out.google.com) (74.125.121.35) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 22 Mar 2010 16:03:36 +0000 Received: from hpaq12.eem.corp.google.com (hpaq12.eem.corp.google.com [10.3.21.12]) by smtp-out.google.com with ESMTP id o2MG3WtW007338 for ; Mon, 22 Mar 2010 17:03:32 +0100 Received: from wwd20 (wwd20.prod.google.com [10.241.241.212]) by hpaq12.eem.corp.google.com with ESMTP id o2MG35tV022476 for ; Mon, 22 Mar 2010 17:03:32 +0100 Received: by wwd20 with SMTP id 20so1873498wwd.36 for ; Mon, 22 Mar 2010 09:03:31 -0700 (PDT) MIME-Version: 1.0 Received: by 10.216.163.207 with SMTP id a57mr277611wel.220.1269273811457; Mon, 22 Mar 2010 09:03:31 -0700 (PDT) In-Reply-To: <201003221433.o2MEXt0J031478@glazunov.sibelius.xs4all.nl> References: <4B9FCA21.9020904@vmware.com> <20100316200424.GA29097@caradoc.them.org> <201003221433.o2MEXt0J031478@glazunov.sibelius.xs4all.nl> Date: Mon, 22 Mar 2010 16:03:00 -0000 Message-ID: Subject: Re: [RFA 3/5] Prec: x86 segment register support: target From: Doug Evans To: Mark Kettenis Cc: teawater@gmail.com, msnyder@vmware.com, dan@codesourcery.com, gdb-patches@sourceware.org, hjl.tools@gmail.com Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-System-Of-Record: true X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2010-03/txt/msg00760.txt.bz2 On Mon, Mar 22, 2010 at 7:33 AM, Mark Kettenis wr= ote: >> From: Hui Zhu >> Date: Mon, 22 Mar 2010 22:02:52 +0800 >> >> Thanks Michael and Daniel. >> >> I make a patch to add base of segments registers to x86-32: >> (gdb) info reg >> eax =A0 =A0 =A0 =A0 =A0 =A00xffffd514 =A0 =A0 -10988 >> ecx =A0 =A0 =A0 =A0 =A0 =A00x1eda96c5 =A0 =A0 517641925 >> edx =A0 =A0 =A0 =A0 =A0 =A00x1 =A0 =A01 >> ebx =A0 =A0 =A0 =A0 =A0 =A00xf7fb1ff4 =A0 =A0 -134537228 >> esp =A0 =A0 =A0 =A0 =A0 =A00xffffd488 =A0 =A0 0xffffd488 >> ebp =A0 =A0 =A0 =A0 =A0 =A00xffffd488 =A0 =A0 0xffffd488 >> esi =A0 =A0 =A0 =A0 =A0 =A00x8048510 =A0 =A0 =A0134513936 >> edi =A0 =A0 =A0 =A0 =A0 =A00x80483d0 =A0 =A0 =A0134513616 >> eip =A0 =A0 =A0 =A0 =A0 =A00x8048487 =A0 =A0 =A00x8048487 >> eflags =A0 =A0 =A0 =A0 0x246 =A0[ PF ZF IF ] >> cs =A0 =A0 =A0 =A0 =A0 =A0 0x23 =A0 35 >> ss =A0 =A0 =A0 =A0 =A0 =A0 0x2b =A0 43 >> ds =A0 =A0 =A0 =A0 =A0 =A0 0x2b =A0 43 >> es =A0 =A0 =A0 =A0 =A0 =A0 0x2b =A0 43 >> fs =A0 =A0 =A0 =A0 =A0 =A0 0x0 =A0 =A00 >> gs =A0 =A0 =A0 =A0 =A0 =A0 0x63 =A0 99 >> cs_base =A0 =A0 =A0 =A00x0 =A0 =A00 >> ss_base =A0 =A0 =A0 =A00x0 =A0 =A00 >> ds_base =A0 =A0 =A0 =A00x0 =A0 =A00 >> es_base =A0 =A0 =A0 =A00x0 =A0 =A00 >> fs_base =A0 =A0 =A0 =A00x0 =A0 =A00 >> gs_base =A0 =A0 =A0 =A00xf7e528d0 =A0 =A0 -135976752 >> >> I try it in x86-32 pc and 32bit code in x86-64. =A0It works OK. > > Sorry, but I don't think adding these xx_base registers is a good > idea. =A0They are not acrhitected registers so they don't beling in the > list of registers. > fwiw, I think it's a great idea.