From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3686 invoked by alias); 19 Dec 2014 08:06:58 -0000 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 Received: (qmail 3668 invoked by uid 89); 19 Dec 2014 08:06:57 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.7 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 X-HELO: relay1.mentorg.com Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 19 Dec 2014 08:06:55 +0000 Received: from svr-orw-fem-05.mgc.mentorg.com ([147.34.97.43]) by relay1.mentorg.com with esmtp id 1Y1saK-0000lS-6F from Yao_Qi@mentor.com ; Fri, 19 Dec 2014 00:06:52 -0800 Received: from GreenOnly (147.34.91.1) by svr-orw-fem-05.mgc.mentorg.com (147.34.97.43) with Microsoft SMTP Server id 14.3.181.6; Fri, 19 Dec 2014 00:06:51 -0800 From: Yao Qi To: Ulrich Weigand CC: , Subject: Re: [PATCH] Detect 64-bit-ness in PowerPC Book III-E References: <201412111530.sBBFUxsi023697@d03av02.boulder.ibm.com> Date: Fri, 19 Dec 2014 08:06:00 -0000 In-Reply-To: <201412111530.sBBFUxsi023697@d03av02.boulder.ibm.com> (Ulrich Weigand's message of "Thu, 11 Dec 2014 16:30:57 +0100") Message-ID: <87ioh8qd0w.fsf@codesourcery.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes X-SW-Source: 2014-12/txt/msg00565.txt.bz2 Ulrich Weigand writes: > Hmm. If it actually is Book III-S, then bit 32 is "reserved", so I'm > not sure including it in the check is safe. Yeah, in fact, I borrow such check from strace 4.9. > > Anton, what would you suggest a user program to use to safely detect > whether a ptrace-attached child is 64-bit or not, on either Book III-S > or Book III-E systems? Maybe, we can first detect the Book III-S vs. Book III-E, and then detect 64-bit-ness. However, I go through PowerISA, but don't find a way to differentiate Book III-S and Book III-E. > > In any case, whatever we do, we should do both in native GDB and > gdbserver. Agreed. --=20 Yao (=E9=BD=90=E5=B0=A7)