From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31939 invoked by alias); 11 Jan 2015 08:27:33 -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 31912 invoked by uid 89); 11 Jan 2015 08:27:28 -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; Sun, 11 Jan 2015 08:27:24 +0000 Received: from svr-orw-fem-03.mgc.mentorg.com ([147.34.97.39]) by relay1.mentorg.com with esmtp id 1YADrl-0001Gz-35 from Yao_Qi@mentor.com for gdb-patches@sourceware.org; Sun, 11 Jan 2015 00:27:21 -0800 Received: from qiyao.dyndns.org.com (147.34.91.1) by svr-orw-fem-03.mgc.mentorg.com (147.34.97.39) with Microsoft SMTP Server id 14.3.224.2; Sun, 11 Jan 2015 00:27:19 -0800 From: Yao Qi To: Subject: [PATCH 0/2, V2] Detect 64-bit-ness in PowerPC Book III-E Date: Sun, 11 Jan 2015 08:27:00 -0000 Message-ID: <1420964846-18881-1-git-send-email-yao@codesourcery.com> In-Reply-To: <201412191549.sBJFnfPW030448@d03av02.boulder.ibm.com> References: <201412191549.sBJFnfPW030448@d03av02.boulder.ibm.com> MIME-Version: 1.0 Content-Type: text/plain X-IsSubscribed: yes X-SW-Source: 2015-01/txt/msg00267.txt.bz2 This patch is the V2 of https://sourceware.org/ml/gdb-patches/2014-12/msg00239.html In V2, we check the different bit of register MSR on Book III-E and Book III-S. In order to differentiate Book III-E and Book III-S, we check the PPC_FEATURE_BOOKE from host's HWCAP, as Ulrich suggested. Patch 1 is to move common macros into nat/ppc-linux.h, and patch 2 is the major part of this series. Regression tested on powerpc-linux with GDBserver. Native powerpc gdb isn't tested. Is it OK? *** BLURB HERE *** Yao Qi (2): Move some ppc macros to nat/ppc-linux.h Detect 64-bit-ness in PowerPC Book III-E gdb/Makefile.in | 6 ++- gdb/config/powerpc/ppc64-linux.mh | 2 +- gdb/gdbserver/Makefile.in | 5 ++- gdb/gdbserver/configure.srv | 2 +- gdb/gdbserver/linux-ppc-low.c | 34 +-------------- gdb/nat/ppc-linux.c | 69 ++++++++++++++++++++++++++++++ gdb/nat/ppc-linux.h | 88 +++++++++++++++++++++++++++++++++++++++ gdb/ppc-linux-nat.c | 54 +----------------------- 8 files changed, 172 insertions(+), 88 deletions(-) create mode 100644 gdb/nat/ppc-linux.c create mode 100644 gdb/nat/ppc-linux.h -- 1.9.3