From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1955 invoked by alias); 28 Feb 2010 20:19:33 -0000 Received: (qmail 1944 invoked by uid 22791); 28 Feb 2010 20:19:32 -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-wy0-f169.google.com (HELO mail-wy0-f169.google.com) (74.125.82.169) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 28 Feb 2010 20:19:27 +0000 Received: by wyb42 with SMTP id 42so903823wyb.0 for ; Sun, 28 Feb 2010 12:19:24 -0800 (PST) MIME-Version: 1.0 Received: by 10.216.188.139 with SMTP id a11mr2409675wen.115.1267388364285; Sun, 28 Feb 2010 12:19:24 -0800 (PST) In-Reply-To: <20100228185116.GB17375@caradoc.them.org> References: <6dc9ffc81002280740j229c0cfq54491979f4811bd4@mail.gmail.com> <20100228185116.GB17375@caradoc.them.org> Date: Sun, 28 Feb 2010 20:19:00 -0000 Message-ID: <6dc9ffc81002281219t389637c7vb1aac459815a4376@mail.gmail.com> Subject: Re: PING: PATCH: Enable x86 XML target descriptions From: "H.J. Lu" To: GDB , "H. Peter Anvin" , Suresh Siddha Content-Type: text/plain; charset=ISO-8859-1 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/msg00703.txt.bz2 On Sun, Feb 28, 2010 at 10:51 AM, Daniel Jacobowitz wrote: > On Sun, Feb 28, 2010 at 07:40:43AM -0800, H.J. Lu wrote: >> Are there any comments/suggestions for my latest patch: >> >> http://sourceware.org/ml/gdb-patches/2010-02/msg00556.html >> >> to enable XML for x86? > > I was waiting for you to respond to my question about flag registers. See: http://sourceware.org/ml/gdb-patches/2010-02/msg00560.html http://sourceware.org/ml/gdb-patches/2010-02/msg00564.html > The discussion trailed off in the discussion about the CS value. > Is that patch still applicable? > Linux x86 kernel maintainer, Peter, has confirmed that checking CS segment register value is the proper way to use ptrace to check 32bit process under the current 64bit kernel. There will be a new ptrace option in 2.6.35 kernel to return the CS.L bit directly. I will submit a gdb patch to try the new ptrace option first before failing back checking the CS segment register value. -- H.J.