From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27466 invoked by alias); 23 Aug 2009 23:43:09 -0000 Received: (qmail 27457 invoked by uid 22791); 23 Aug 2009 23:43:09 -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 mail-pz0-f198.google.com (HELO mail-pz0-f198.google.com) (209.85.222.198) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 23 Aug 2009 23:43:02 +0000 Received: by pzk36 with SMTP id 36so704925pzk.12 for ; Sun, 23 Aug 2009 16:43:01 -0700 (PDT) MIME-Version: 1.0 Received: by 10.142.75.16 with SMTP id x16mr270396wfa.155.1251070981097; Sun, 23 Aug 2009 16:43:01 -0700 (PDT) In-Reply-To: <837hwufkxr.fsf@gnu.org> References: <4A7BA1DE.6010103@vmware.com> <4A8A2ACD.9000208@vmware.com> <4A90B261.2030602@vmware.com> <4A90C08A.8000107@vmware.com> <837hwufkxr.fsf@gnu.org> From: Hui Zhu Date: Sun, 23 Aug 2009 23:53:00 -0000 Message-ID: Subject: Re: Bug in i386_process_record? To: Eli Zaretskii , msnyder@vmware.com Cc: gdb-patches@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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: 2009-08/txt/msg00375.txt.bz2 If I am right, this is from the old memory manager -- segment manager. X86 is a old arch and support it. Now, most of OS include Linux, they don't use this MM, they use page manager that X86 support it too (X86 is crazy). So they set the value of segment reg to 0. For the gdb, the value of segment reg is not the really value. cs 0x73 115 ss 0x7b 123 ds 0x7b 123 es 0x7b 123 fs 0x0 0 gs 0x33 51 I have tried some insn that use segment reg such as string ops insn. I found that the value of this segment reg cannot affect anything. And prec just support Linux now. I have move "set_gdbarch_process_record (gdbarch, i386_process_record);" to i386-linux-tdep.c. This patch doesn't add any more thing, just fix the bug. And this bug seems affect a lot of program (for example, Oza's fp example). I suggest let it in first. After that, we can find a good way to handle the segment reg better. What do you think about it? Thanks, Hui On Mon, Aug 24, 2009 at 02:24, Eli Zaretskii wrote: > > > From: Hui Zhu > > Date: Sun, 23 Aug 2009 12:29:33 +0800 > > Cc: gdb-patches ml > > > > read_register (I386_ES_REGNUM) > > This value is not the value of ES. =A0This is number of TLB. > > On what OS?