From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 47017 invoked by alias); 10 May 2018 19:59:21 -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 46937 invoked by uid 89); 10 May 2018 19:59:15 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-11.8 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_2,GIT_PATCH_3,KAM_LAZY_DOMAIN_SECURITY,NO_DNS_FOR_FROM,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 spammy=consolidate, tdep, configure.tgt, UD:configure.tgt X-HELO: mx0a-001b2d01.pphosted.com Received: from mx0a-001b2d01.pphosted.com (HELO mx0a-001b2d01.pphosted.com) (148.163.156.1) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 10 May 2018 19:59:14 +0000 Received: from pps.filterd (m0098393.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w4AJx0Dg073684 for ; Thu, 10 May 2018 15:59:13 -0400 Received: from e13.ny.us.ibm.com (e13.ny.us.ibm.com [129.33.205.203]) by mx0a-001b2d01.pphosted.com with ESMTP id 2hvu0n4eac-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 10 May 2018 15:59:13 -0400 Received: from localhost by e13.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 10 May 2018 15:59:11 -0400 Received: from b01cxnp23033.gho.pok.ibm.com (9.57.198.28) by e13.ny.us.ibm.com (146.89.104.200) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Thu, 10 May 2018 15:59:10 -0400 Received: from b01ledav005.gho.pok.ibm.com (b01ledav005.gho.pok.ibm.com [9.57.199.110]) by b01cxnp23033.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w4AJx9EQ65404976 for ; Thu, 10 May 2018 19:59:09 GMT Received: from b01ledav005.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id EB5C7AE03B for ; Thu, 10 May 2018 16:01:07 -0400 (EDT) Received: from pedro.localdomain (unknown [9.18.235.221]) by b01ledav005.gho.pok.ibm.com (Postfix) with ESMTP id B848BAE03C for ; Thu, 10 May 2018 16:01:07 -0400 (EDT) Received: by pedro.localdomain (Postfix, from userid 1000) id 53F653C0360; Thu, 10 May 2018 16:59:07 -0300 (-03) From: Pedro Franco de Carvalho To: gdb-patches@sourceware.org Subject: [PATCH 0/8] [PowerPC] Miscellaneous fixes for register access Date: Thu, 10 May 2018 19:59:00 -0000 X-TM-AS-GCONF: 00 x-cbid: 18051019-0008-0000-0000-00000305C9DA X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00009001; HX=3.00000241; KW=3.00000007; PH=3.00000004; SC=3.00000259; SDB=6.01030392; UDB=6.00526595; IPR=6.00809523; MB=3.00021034; MTD=3.00000008; XFM=3.00000015; UTC=2018-05-10 19:59:10 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18051019-0009-0000-0000-0000393441AD Message-Id: <20180510195840.17734-1-pedromfc@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-05-10_06:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=15 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1709140000 definitions=main-1805100185 X-IsSubscribed: yes X-SW-Source: 2018-05/txt/msg00256.txt.bz2 This patch series fixes some issues with register access on ppc linux targets and refactors related code. Paches #1-#4 are for refactoring. Patch #1 changes all ppc linux targets (native, core file and gdbserver) so that they use the same code for selecting a target description. Patch #2 simplifies the arch_setup code by reusing the native target function for determining the target wordsize. Patch #3 disables regsets by setting their sizes to 0 to reduce the number of references to the hwcap global. Patch #4 changes all the targets to use the same size constants for the vector regset sizes. Patch #5 fixes an outdated assumption of big-endianess made to access the vector control register, and refactors the native functions for accessing the vector regset. Patch #6 fixes the code used to get vector-scalar registers from core files, and refactors the native functions for accessing these same registers, in a way similar to patch #5. Patch #7 changes the gdbarch_init function so that decimal floating-point pseudo registers are only added to the architecture when they exist. Patch #8 changes the read_description function for core files to use the full set of target descriptions available in the native target. Pedro Franco de Carvalho (8): [PowerPC] Consolidate linux target description selection [PowerPC] Consolidate wordsize getter between native and gdbserver [PowerPC] Disable regsets using zero sizes in gdbserver [PowerPC] Consolidate linux vector regset sizes [PowerPC] Fix access to VSCR in linux targets [PowerPC] Fix VSX registers in linux core files [PowerPC] Fix inclusion of dfp pseudoregs in tdep [PowerPC] Recognize isa205 in linux core files gdb/Makefile.in | 3 + gdb/arch/ppc-linux-common.c | 85 +++++ gdb/arch/ppc-linux-common.h | 60 ++++ gdb/arch/ppc-linux-tdesc.h | 42 +++ gdb/configure.nat | 2 +- gdb/configure.tgt | 3 +- gdb/gdbserver/Makefile.in | 1 + gdb/gdbserver/configure.srv | 1 + gdb/gdbserver/linux-ppc-ipa.c | 3 +- gdb/gdbserver/linux-ppc-low.c | 151 ++++----- .../{linux-ppc-tdesc.h => linux-ppc-tdesc-init.h} | 15 - gdb/nat/ppc-linux.c | 20 ++ gdb/nat/ppc-linux.h | 3 + gdb/ppc-linux-nat.c | 357 ++++----------------- gdb/ppc-linux-tdep.c | 128 ++++++-- gdb/ppc-linux-tdep.h | 21 +- gdb/rs6000-tdep.c | 85 +---- gdb/testsuite/gdb.arch/powerpc-fpscr-gcore.exp | 93 ++++++ gdb/testsuite/gdb.arch/powerpc-vsx-gcore.exp | 90 ++++++ 19 files changed, 642 insertions(+), 521 deletions(-) create mode 100644 gdb/arch/ppc-linux-common.c create mode 100644 gdb/arch/ppc-linux-common.h create mode 100644 gdb/arch/ppc-linux-tdesc.h rename gdb/gdbserver/{linux-ppc-tdesc.h => linux-ppc-tdesc-init.h} (76%) create mode 100644 gdb/testsuite/gdb.arch/powerpc-fpscr-gcore.exp create mode 100644 gdb/testsuite/gdb.arch/powerpc-vsx-gcore.exp -- 2.13.6