From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11116 invoked by alias); 22 Feb 2010 22:21:31 -0000 Received: (qmail 11103 invoked by uid 22791); 22 Feb 2010 22:21:30 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40 X-Spam-Check-By: sourceware.org Received: from mail-ew0-f223.google.com (HELO mail-ew0-f223.google.com) (209.85.219.223) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 22 Feb 2010 22:21:27 +0000 Received: by ewy23 with SMTP id 23so3485158ewy.4 for ; Mon, 22 Feb 2010 14:21:24 -0800 (PST) MIME-Version: 1.0 Received: by 10.216.179.201 with SMTP id h51mr111484wem.224.1266877284615; Mon, 22 Feb 2010 14:21:24 -0800 (PST) In-Reply-To: <4B83017D.5080002@zytor.com> References: <20100218054312.GA9022@lucon.org> <201002221656.o1MGuw5q009795@glazunov.sibelius.xs4all.nl> <20100222170303.GG9493@caradoc.them.org> <201002221950.o1MJoomn007989@glazunov.sibelius.xs4all.nl> <6dc9ffc81002221306y6287491dv5aaac541ba303199@mail.gmail.com> <201002222130.o1MLU3ub013661@glazunov.sibelius.xs4all.nl> <6dc9ffc81002221341j735bdedeo7285951f4fc39c27@mail.gmail.com> <4B82FEE2.2090501@zytor.com> <6dc9ffc81002221407w75999ffep82ef3b2e0feeb489@mail.gmail.com> <4B83017D.5080002@zytor.com> Date: Mon, 22 Feb 2010 22:21:00 -0000 Message-ID: <6dc9ffc81002221421k47a298f7obe9709fa4eac7e4e@mail.gmail.com> Subject: Re: PATCH: Enable x86 XML target descriptions From: "H.J. Lu" To: "H. Peter Anvin" Cc: Mark Kettenis , dan@codesourcery.com, gdb-patches@sourceware.org, Suresh Siddha 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: 2010-02/txt/msg00564.txt.bz2 On Mon, Feb 22, 2010 at 2:13 PM, H. Peter Anvin wrote: > On 02/22/2010 02:07 PM, H.J. Lu wrote: >> >> Oops. Wrong kernel source. The idea is the same. It is the CS.L bit >> for 64-bit mode. That is >> >> =A0 /* Value of CS register: >> =A0 =A0 =A01. 64bit: 0x33. >> =A0 =A0 =A02. 32bit: 0x23. >> =A0 =A0*/ >> > > That's not the CS.L bit; that's the selector value (which is currently > the only thing exported.) =A0The future extension should export the > descriptor information instead of relying on fixed values. > Yes, for the time being, gdb checks CS value before the new ptrace option is added to kernel. After that, gdb will be changed to check the the CS.L bit first and fail back to CS value. --=20 H.J.