From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 128626 invoked by alias); 5 Jul 2019 09:45:56 -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 128510 invoked by uid 89); 5 Jul 2019 09:45:54 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-16.4 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_2,GIT_PATCH_3,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.1 spammy=cleanups, HAccept-Language:en-GB X-HELO: EUR04-VI1-obe.outbound.protection.outlook.com Received: from mail-eopbgr80074.outbound.protection.outlook.com (HELO EUR04-VI1-obe.outbound.protection.outlook.com) (40.107.8.74) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 05 Jul 2019 09:45:46 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ox5RmeE6PE+ndLVlZqN4zrQ/2mlMiEzBfXjwpAZDTL4=; b=4Qgkm5gUJkqnv+Q4vXGWTyO8WnbmtZG/R0SzZ99Qo2fnQWVcVpeeXBI9B7lNGMezU2U2DGDAzo4OZP4yAlxd+QTZ03Jdg+KX5+ET3ZlBn0xvUPLtB1oKBm6zSqGwy+qM224c6yVYCcInn1BwrPZdn6R1zwopmCLqm1OVXb4xw5o= Received: from AM6PR08CA0010.eurprd08.prod.outlook.com (2603:10a6:20b:b2::22) by VE1PR08MB4960.eurprd08.prod.outlook.com (2603:10a6:803:110::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2052.18; Fri, 5 Jul 2019 09:45:41 +0000 Received: from AM5EUR03FT003.eop-EUR03.prod.protection.outlook.com (2a01:111:f400:7e08::207) by AM6PR08CA0010.outlook.office365.com (2603:10a6:20b:b2::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.2052.17 via Frontend Transport; Fri, 5 Jul 2019 09:45:40 +0000 Authentication-Results: spf=temperror (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; sourceware.org; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;sourceware.org; dmarc=temperror action=none header.from=arm.com; Received-SPF: TempError (protection.outlook.com: error in processing during lookup of arm.com: DNS Timeout) Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by AM5EUR03FT003.mail.protection.outlook.com (10.152.16.149) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.2052.18 via Frontend Transport; Fri, 5 Jul 2019 09:45:39 +0000 Received: ("Tessian outbound 1b6bed2723b6:v23"); Fri, 05 Jul 2019 09:45:39 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: a7f2b58ba971cc43 X-CR-MTA-TID: 64aa7808 Received: from 7ecfcbd9f912.2 (cr-mta-lb-1.cr-mta-net [104.47.13.53]) by 64aa7808-outbound-1.mta.getcheckrecipient.com id 57EF9505-5BD1-4028-B693-B4D6D6E2B476.1; Fri, 05 Jul 2019 09:45:34 +0000 Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-he1eur04lp2053.outbound.protection.outlook.com [104.47.13.53]) by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 7ecfcbd9f912.2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384); Fri, 05 Jul 2019 09:45:34 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ox5RmeE6PE+ndLVlZqN4zrQ/2mlMiEzBfXjwpAZDTL4=; b=4Qgkm5gUJkqnv+Q4vXGWTyO8WnbmtZG/R0SzZ99Qo2fnQWVcVpeeXBI9B7lNGMezU2U2DGDAzo4OZP4yAlxd+QTZ03Jdg+KX5+ET3ZlBn0xvUPLtB1oKBm6zSqGwy+qM224c6yVYCcInn1BwrPZdn6R1zwopmCLqm1OVXb4xw5o= Received: from DB6PR0802MB2133.eurprd08.prod.outlook.com (10.172.227.22) by DB6PR0802MB2472.eurprd08.prod.outlook.com (10.172.251.20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2032.20; Fri, 5 Jul 2019 09:45:32 +0000 Received: from DB6PR0802MB2133.eurprd08.prod.outlook.com ([fe80::259b:8edf:fb65:2760]) by DB6PR0802MB2133.eurprd08.prod.outlook.com ([fe80::259b:8edf:fb65:2760%8]) with mapi id 15.20.2052.010; Fri, 5 Jul 2019 09:45:32 +0000 From: Alan Hayward To: "gdb-patches@sourceware.org" CC: nd , Alan Hayward Subject: [PATCH 0/7] Arm: Use feature target descriptions Date: Fri, 05 Jul 2019 09:46:00 -0000 Message-ID: <20190705094525.51536-1-alan.hayward@arm.com> Authentication-Results-Original: spf=none (sender IP is ) smtp.mailfrom=Alan.Hayward@arm.com; X-Microsoft-Antispam-Untrusted: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(4618075)(2017052603328)(7193020);SRVR:DB6PR0802MB2472; x-checkrecipientrouted: true x-ms-oob-tlc-oobclassifiers: OLM:8882;OLM:8882; X-Forefront-Antispam-Report-Untrusted: SFV:NSPM;SFS:(10009020)(4636009)(376002)(396003)(366004)(346002)(39860400002)(136003)(189003)(199004)(68736007)(73956011)(44832011)(5660300002)(66946007)(66446008)(305945005)(66556008)(478600001)(6116002)(6916009)(25786009)(2906002)(3846002)(2616005)(50226002)(476003)(486006)(64756008)(66476007)(7736002)(2351001)(8936002)(86362001)(36756003)(53936002)(102836004)(4326008)(52116002)(81156014)(26005)(256004)(14454004)(6512007)(6436002)(186003)(6486002)(81166006)(8676002)(1076003)(2501003)(71190400001)(316002)(99286004)(14444005)(54906003)(66066001)(5640700003)(6506007)(386003)(71200400001)(72206003);DIR:OUT;SFP:1101;SCL:1;SRVR:DB6PR0802MB2472;H:DB6PR0802MB2133.eurprd08.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: arm.com does not designate permitted sender hosts) X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Message-Info-Original: X+t1jg2J1Pxnf3mlYlhyJFYgTICoJKduBq0tS+hovjvs5MEmMiqKhmwFGF1tFAswQ/KHBR2F/JpmFTq/BPMG52i0El7zuaxusSoAvnDUZRF+JrrFSiELoYRCZjZWssWFqN6sYbYbo01Ek4nhURGzhV+KxsTCZF2eC+J/ntbe2fgfcdM3d/hpaecsmFsK/ml5O72jYFY3KLyjV4ddPql2JLqdZ00VHQWHJQBsMEAmi/zK9LkeDiBh+EglDxvPpk+xvxTp2LjyxLpc4n4GYmxB/QuUWyKiZhhQESj4LPXlp+olkMEMyLdc8zSVQ919uD28etIh+E1n/SLd72mw5FwTqtbrVi2IgbNeZlMWPYoTUOlgRq9weqOrlh5WLB3sMPIdouqk7t41AWAEkizXSZqTJTYmd1M7wgf4I0d/RaPL3WI= Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Original-Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Alan.Hayward@arm.com; Return-Path: Alan.Hayward@arm.com X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM5EUR03FT003.eop-EUR03.prod.protection.outlook.com X-MS-Office365-Filtering-Correlation-Id-Prvs: e6be0cbd-773d-47b6-2de9-08d7012d8578 X-IsSubscribed: yes X-SW-Source: 2019-07/txt/msg00168.txt.bz2 This set of patches is a result of me trying to figure out exactly what is supported for Arm. It moves Arm over to using feature target description= s, simplifying the confusion of xml files in the features/arm/ directory. In addition it helps to further separate out AArch32. There are zero functional changes made by this series. The intention is that all Arm target descriptions are identical before and after the series. All quirks that might seem odd (for example, the Arm with NEON creates a vfp3 feature and then a blank neon feature) have been preserved. One of the patches adds tests to prove the new target descriptions are identical. The final patch then removes these tests (as they block the removal of the xml files). One of the patches breaks the AArch64 gdbserver build, but it is fixed in the following patch. Preventing this would have meant including additional unused functionality, and then removing again. Code has been tested with AArch32, Armv7, and X86 target-all builds. I don't have every Arm target to test this on, but the xml tests should alleviate a= ny=20 issue. Alan Hayward (7): Arm: Minor style cleanups Arm: Create feature files for Arm target descriptions Arm: Add read_description read funcs and use in GDB Arm: Use feature target descriptions Arm: Add xml unit tests Arm: Use read_description funcs in gdbserver Arm: Remove unused feature files and tests gdb/Makefile.in | 5 + gdb/aarch32-tdep.c | 33 +++++ gdb/aarch32-tdep.h | 25 ++++ gdb/aarch64-linux-nat.c | 6 +- gdb/arch/aarch32.c | 43 +++++++ gdb/arch/aarch32.h | 27 ++++ gdb/arch/arm.c | 84 +++++++++++++ gdb/arch/arm.h | 27 ++++ gdb/arm-fbsd-tdep.c | 11 +- gdb/arm-linux-nat.c | 30 ++--- gdb/arm-linux-tdep.c | 11 +- gdb/arm-tdep.c | 51 ++++---- gdb/arm-tdep.h | 8 +- gdb/configure.tgt | 8 +- gdb/features/Makefile | 30 ++--- gdb/features/arm/arm-core.c | 31 +++++ gdb/features/arm/arm-fpa.c | 23 ++++ gdb/features/arm/arm-m-profile-with-fpa.c | 39 ++++++ ...-layout.xml =3D> arm-m-profile-with-fpa.xml} | 13 +- gdb/features/arm/arm-m-profile.c | 31 +++++ gdb/features/arm/arm-vfpv2.c | 30 +++++ gdb/features/arm/arm-vfpv3.c | 46 +++++++ gdb/features/arm/arm-with-iwmmxt.c | 83 ------------- gdb/features/arm/arm-with-iwmmxt.xml | 13 -- gdb/features/arm/arm-with-m-fpa-layout.c | 46 ------- gdb/features/arm/arm-with-m-vfp-d16.c | 56 --------- gdb/features/arm/arm-with-m-vfp-d16.xml | 14 --- gdb/features/arm/arm-with-m.c | 37 ------ gdb/features/arm/arm-with-m.xml | 12 -- gdb/features/arm/arm-with-neon.c | 74 ----------- gdb/features/arm/arm-with-neon.xml | 14 --- gdb/features/arm/arm-with-vfpv2.c | 56 --------- gdb/features/arm/arm-with-vfpv2.xml | 13 -- gdb/features/arm/arm-with-vfpv3.c | 72 ----------- gdb/features/arm/arm-with-vfpv3.xml | 13 -- gdb/features/arm/xscale-iwmmxt.c | 57 +++++++++ gdb/gdbserver/configure.srv | 22 ++-- gdb/gdbserver/linux-aarch32-low.c | 2 - gdb/gdbserver/linux-aarch32-low.h | 2 - gdb/gdbserver/linux-aarch32-tdesc.c | 46 +++++++ gdb/gdbserver/linux-aarch32-tdesc.h | 29 +++++ gdb/gdbserver/linux-aarch64-low.c | 3 +- gdb/gdbserver/linux-arm-low.c | 115 ++++++++---------- gdb/gdbserver/linux-arm-tdesc.c | 62 ++++++++++ gdb/gdbserver/linux-arm-tdesc.h | 29 +++++ gdb/target-descriptions.c | 3 +- 46 files changed, 810 insertions(+), 675 deletions(-) create mode 100644 gdb/aarch32-tdep.c create mode 100644 gdb/aarch32-tdep.h create mode 100644 gdb/arch/aarch32.c create mode 100644 gdb/arch/aarch32.h create mode 100644 gdb/features/arm/arm-core.c create mode 100644 gdb/features/arm/arm-fpa.c create mode 100644 gdb/features/arm/arm-m-profile-with-fpa.c rename gdb/features/arm/{arm-with-m-fpa-layout.xml =3D> arm-m-profile-with= -fpa.xml} (78%) create mode 100644 gdb/features/arm/arm-m-profile.c create mode 100644 gdb/features/arm/arm-vfpv2.c create mode 100644 gdb/features/arm/arm-vfpv3.c delete mode 100644 gdb/features/arm/arm-with-iwmmxt.c delete mode 100644 gdb/features/arm/arm-with-iwmmxt.xml delete mode 100644 gdb/features/arm/arm-with-m-fpa-layout.c delete mode 100644 gdb/features/arm/arm-with-m-vfp-d16.c delete mode 100644 gdb/features/arm/arm-with-m-vfp-d16.xml delete mode 100644 gdb/features/arm/arm-with-m.c delete mode 100644 gdb/features/arm/arm-with-m.xml delete mode 100644 gdb/features/arm/arm-with-neon.c delete mode 100644 gdb/features/arm/arm-with-neon.xml delete mode 100644 gdb/features/arm/arm-with-vfpv2.c delete mode 100644 gdb/features/arm/arm-with-vfpv2.xml delete mode 100644 gdb/features/arm/arm-with-vfpv3.c delete mode 100644 gdb/features/arm/arm-with-vfpv3.xml create mode 100644 gdb/features/arm/xscale-iwmmxt.c create mode 100644 gdb/gdbserver/linux-aarch32-tdesc.c create mode 100644 gdb/gdbserver/linux-aarch32-tdesc.h create mode 100644 gdb/gdbserver/linux-arm-tdesc.c create mode 100644 gdb/gdbserver/linux-arm-tdesc.h --=20 2.20.1 (Apple Git-117)