Message ID | 20230602054328.24695-1-luis.machado@arm.com |
---|---|
State | New |
Headers |
Return-Path: <gdb-patches-bounces+patchwork=sourceware.org@sourceware.org> X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id DA544385700F for <patchwork@sourceware.org>; Fri, 2 Jun 2023 05:44:06 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DA544385700F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1685684646; bh=B3HknjmGl1XQIp/quSg+tymh0bDqLRP1zfAhC6MJUhE=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=rGS/qh1ua7D5LlefcNf/ylx/DyTQCI9Krlif4KL5bPnX/wmsmsddAR+OFxXjjUGOd 49y/9n0YlAU3WS0cl4c7v7c2zPNl9/WCEIOBPETwH1AhC7vAENbfJPO3nNVNgjfjRR EDN3P1bUBWcgT3naSWFlUGq6eznQEPTCoR9jSTZE= X-Original-To: gdb-patches@sourceware.org Delivered-To: gdb-patches@sourceware.org Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2043.outbound.protection.outlook.com [40.107.21.43]) by sourceware.org (Postfix) with ESMTPS id A4D233858D1E for <gdb-patches@sourceware.org>; Fri, 2 Jun 2023 05:43:42 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org A4D233858D1E Received: from DB6P195CA0019.EURP195.PROD.OUTLOOK.COM (2603:10a6:4:cb::29) by AM9PR08MB6193.eurprd08.prod.outlook.com (2603:10a6:20b:282::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6455.24; Fri, 2 Jun 2023 05:43:39 +0000 Received: from DBAEUR03FT007.eop-EUR03.prod.protection.outlook.com (2603:10a6:4:cb:cafe::ab) by DB6P195CA0019.outlook.office365.com (2603:10a6:4:cb::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6455.25 via Frontend Transport; Fri, 2 Jun 2023 05:43:39 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; pr=C Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by DBAEUR03FT007.mail.protection.outlook.com (100.127.142.161) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6477.11 via Frontend Transport; Fri, 2 Jun 2023 05:43:39 +0000 Received: ("Tessian outbound 5154e9d36775:v136"); Fri, 02 Jun 2023 05:43:39 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 3aad3895b2c98088 X-CR-MTA-TID: 64aa7808 Received: from 2f96b17b09cf.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 90C675A2-D393-4342-B6F7-DF204FAD026A.1; Fri, 02 Jun 2023 05:43:32 +0000 Received: from EUR03-DBA-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 2f96b17b09cf.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Fri, 02 Jun 2023 05:43:32 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QPMht/JWt/OrnwjqItpVWvqp1++COslH2BocogNO+KqvfF2D+UcbNE3QX8iMI1qAOElkHhsXp7MGz3hyLBKJqZ5WIppbdW2kVV/0N7m1JuUkv49U49aV21esiurUi3sI9dX13XTWn+k0XSJaLCCvxpxikX08yk7XaI/0RkKxtDc6VXJC6GM8pRj3c1X/9jW92lc95y5wPfzl+eMT1rb2Xf+r9KN8HwBsz8qyU9wo/GZSCsvzU8vVavPfFdPIRrBPurX6YVHpPsvn72Vv+6XDtOkuOK9pakhu1muXy/uT7KtqVxZs/yQ3o79zahVR21xkD81DnbrjDeIAOG4GIWDCew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=B3HknjmGl1XQIp/quSg+tymh0bDqLRP1zfAhC6MJUhE=; b=MOThh6Q8u1aZ3XiWFb1MF9/0EdiO/bzAQqDKpNTPxooYwjDbJNg+ArIbVxp+baB8yCCu5YyAhQ/sykNTB8H387IFPC+pYA9jfLRp7fdmVTdSYT7MdtZ/I4oIN8ioPtZ747fMfwD2vRjjjGdc+CY3NiwFc85RCO46g3Q/ykqwGr3iEt3OIruYKENgm/dJ10WM4b16EWuVvT7a6BfMyPrDYWVx4PUa+s0g23DTuLjdNBU2sjsrtY3LQSSGnp9KE8WJtGLeitSyWCdaPAwto1d8S0/AySBm2NljBKrF9kTELZAiogNbjD58i+51y+oSupSAUN/8+fC5ciP87H+i1VRVRQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 40.67.248.234) smtp.rcpttodomain=sourceware.org smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=none (message not signed); arc=none Received: from AS9PR06CA0774.eurprd06.prod.outlook.com (2603:10a6:20b:484::29) by AS8PR08MB9599.eurprd08.prod.outlook.com (2603:10a6:20b:619::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6433.26; Fri, 2 Jun 2023 05:43:30 +0000 Received: from AM7EUR03FT029.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:484:cafe::47) by AS9PR06CA0774.outlook.office365.com (2603:10a6:20b:484::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6455.26 via Frontend Transport; Fri, 2 Jun 2023 05:43:30 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 40.67.248.234) smtp.mailfrom=arm.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 40.67.248.234 as permitted sender) receiver=protection.outlook.com; client-ip=40.67.248.234; helo=nebula.arm.com; pr=C Received: from nebula.arm.com (40.67.248.234) by AM7EUR03FT029.mail.protection.outlook.com (100.127.140.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6477.10 via Frontend Transport; Fri, 2 Jun 2023 05:43:30 +0000 Received: from AZ-NEU-EX03.Arm.com (10.251.24.31) by AZ-NEU-EX04.Arm.com (10.251.24.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23; Fri, 2 Jun 2023 05:43:29 +0000 Received: from e129171.arm.com (10.57.74.125) by mail.arm.com (10.251.24.31) with Microsoft SMTP Server id 15.1.2507.23 via Frontend Transport; Fri, 2 Jun 2023 05:43:29 +0000 To: <gdb-patches@sourceware.org> Subject: [PATCH] [AArch64] Fix architecture debug version constant thinkos Date: Fri, 2 Jun 2023 06:43:28 +0100 Message-ID: <20230602054328.24695-1-luis.machado@arm.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EOPAttributedMessage: 1 X-MS-TrafficTypeDiagnostic: AM7EUR03FT029:EE_|AS8PR08MB9599:EE_|DBAEUR03FT007:EE_|AM9PR08MB6193:EE_ X-MS-Office365-Filtering-Correlation-Id: a6554744-2777-4306-9b70-08db632c511f x-checkrecipientrouted: true NoDisclaimer: true X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: 8CQ5SXXIjKwj+N6PNov04YKURNJftznbdpqopCjT9CLEaZjB6yekD0yyI2R+2vODCcRr621E1GVuv4JLR4xPowxgk8yTjH4W2SeKzx/NjjXnG8aB67vsyuV10j2+eABunzEN8rHbT0433TZHhRTj5A64lIcAalggCvXhQ8OX2RJY1sJKX3h/TrbbeBtPMKzqWsftnlNcdQCXSyZaej5qzTtO8r3elT6mppsdgU08aEA0lWu/hFAtDmY72LQnNpAXC4/tzVO1iRrlLyh1XoB49UKmj0YCmax2OkL9ad2J5KEVRuCNzs3bwgldsKDXO/8tJmX7dwVxwFFYAAcUJmzCzwUgGZA7Ga3QYQ1ObiDjiwnfXljbAR6EkyuI8XCw9fE1Ms9FYwZ8fPLay6T43id3shSPzKz1uWl6MkTIO0AlZaoJqngJpkYeV+PidtwqJo19cR6POqM5sxeNJSw6CklpD7avERN8n27d9fIV2qae+bWv3t4S5CdyndLgt4OZm+17NRZc1HOU2t36p+VB92Hgiv0+e5cFDtixE90nLNOMCl/vSHvdBSwxuqCI17XFch/qFIiFJ901TIMgdluPEZI7NtUlfVijsSJtQtupCj54XEM/SyET/H4iKT4+vhNafloWxmocHd5CR8Q878eLaadjbGX8F8Vdnt2FeFN+5FwpfYG+4pLoKQBUw9itmE/eYyj6MVlVDZjDuaXGS7GuybfKEWJPK0f6Ewune4E9PIzzsfPUxAjdOUvIgI4GcS1dBqb5GElMrrnaT5mxO2xm1eRQrA== X-Forefront-Antispam-Report-Untrusted: CIP:40.67.248.234; CTRY:IE; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:nebula.arm.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230028)(4636009)(376002)(346002)(396003)(39860400002)(136003)(451199021)(46966006)(40470700004)(36840700001)(82310400005)(47076005)(36860700001)(83380400001)(40480700001)(426003)(336012)(82740400003)(81166007)(356005)(36756003)(41300700001)(316002)(7696005)(1076003)(26005)(6916009)(70206006)(70586007)(40460700003)(44832011)(4744005)(2906002)(8676002)(8936002)(5660300002)(2616005)(478600001)(86362001)(186003)(36900700001); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR08MB9599 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DBAEUR03FT007.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 1d63db9d-5721-40a0-b4fc-08db632c4bad X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 5nJ2g4nGuA50KM31zGl8/pEHVY6IKqjHSkOy2Y3rkRAyDhcsS4JxaT/urwFdj/lPm+pDjluKc2Dirvo/7UWGf5Fwp6rXF+PqfPckQ6N5FgLX4z4Z6l+mpFXr5QN3ArFVKlYxjx3Spz7SYlguNSl/9YjUdcEKrc1NCFtCX5AGON9g3mLc8V1iMMJ1NorktRZcZAP8Uwq6Z1q6UcPCEIFPOyjD1zaePAN/yNgPhprW9XCC4oyBjfjL6rTPqDk1LkGZvw/ZU2CPhYI0Y/kjgOPAX0aRNiSPw4eRsYnfXuQLW/AxfZ57srUhtlEp0fhk4Bnul9/mAlR5qf1rhJG13MGvtk0Pzn9FdcMFY7IeJ3jrBX5/RET3LGfhZzgF36HVnftjHW17yiHIvqqWCNg0thzmllGMpeNx5yvdRCwVrwPVDZHCZDf4weIqua3b3N1THwpDFTIpUFO9SuY1GlqpblBFMvjtDP/+gy3XPlqCN6WkHq6d/yRbDP2IaHKG1yYtkrLp3mpdfw0e5Nw63SzMTE7mLPDoFtdmF2dSKADwOIwkfCp9GjUrQ/aEFOa/qGPlL+Jq2JFefnrp0ELXGlJrylUlUTRPk7Yn53RRnCI98V/9TKCTDfhIAUvoGwTCQGmt21arbuO1I9QVH4Iytg7j2+TMnwBbWgg0giZEtxVT6Obw59yD+l2vlWqnhknyyBCJY5ISp5LJ8jlJ5uTjJaCw5Te+V2xI/ebuAlr075In7+bdv/czxOcfbYQDXIbft0O9nbro X-Forefront-Antispam-Report: CIP:63.35.35.123; CTRY:IE; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:64aa7808-outbound-1.mta.getcheckrecipient.com; PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com; CAT:NONE; SFS:(13230028)(4636009)(346002)(376002)(136003)(396003)(39860400002)(451199021)(46966006)(36840700001)(40470700004)(478600001)(1076003)(26005)(336012)(426003)(83380400001)(4744005)(2616005)(2906002)(186003)(47076005)(40460700003)(36860700001)(81166007)(44832011)(8676002)(82740400003)(8936002)(86362001)(7696005)(40480700001)(316002)(70206006)(70586007)(36756003)(41300700001)(82310400005)(6916009)(5660300002); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Jun 2023 05:43:39.3793 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: a6554744-2777-4306-9b70-08db632c511f X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d; Ip=[63.35.35.123]; Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-AuthSource: DBAEUR03FT007.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR08MB6193 X-Spam-Status: No, score=-11.9 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, FORGED_SPF_HELO, GIT_PATCH_0, KAM_DMARC_NONE, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_NONE, TXREP, T_SCC_BODY_TEXT_LINE, UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list <gdb-patches.sourceware.org> List-Unsubscribe: <https://sourceware.org/mailman/options/gdb-patches>, <mailto:gdb-patches-request@sourceware.org?subject=unsubscribe> List-Archive: <https://sourceware.org/pipermail/gdb-patches/> List-Post: <mailto:gdb-patches@sourceware.org> List-Help: <mailto:gdb-patches-request@sourceware.org?subject=help> List-Subscribe: <https://sourceware.org/mailman/listinfo/gdb-patches>, <mailto:gdb-patches-request@sourceware.org?subject=subscribe> From: Luis Machado via Gdb-patches <gdb-patches@sourceware.org> Reply-To: Luis Machado <luis.machado@arm.com> Errors-To: gdb-patches-bounces+patchwork=sourceware.org@sourceware.org Sender: "Gdb-patches" <gdb-patches-bounces+patchwork=sourceware.org@sourceware.org> |
Series |
[AArch64] Fix architecture debug version constant thinkos
|
|
Commit Message
Luis Machado
June 2, 2023, 5:43 a.m. UTC
Caught this during emulator testing. Fix the constants. They should be 0xa and 0xb as opposed to 0x10 and 0x11. There was a thinko while defining them. Obvious enough. Tested on aarch64-linux Ubuntu 20.04/22.04. --- gdb/nat/aarch64-hw-point.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
Comments
Luis Machado via Gdb-patches <gdb-patches@sourceware.org> writes: > Caught this during emulator testing. > > Fix the constants. They should be 0xa and 0xb as opposed to 0x10 and > 0x11. There was a thinko while defining them. > > Obvious enough. I agree. Approved-By: Andrew Burgess <aburgess@redhat.com> Thanks, Andrew > > Tested on aarch64-linux Ubuntu 20.04/22.04. > --- > gdb/nat/aarch64-hw-point.h | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/gdb/nat/aarch64-hw-point.h b/gdb/nat/aarch64-hw-point.h > index c19681422da..2ff9ccb5c1c 100644 > --- a/gdb/nat/aarch64-hw-point.h > +++ b/gdb/nat/aarch64-hw-point.h > @@ -58,9 +58,9 @@ > #define AARCH64_DEBUG_ARCH_V8_1 0x7 > #define AARCH64_DEBUG_ARCH_V8_2 0x8 > #define AARCH64_DEBUG_ARCH_V8_4 0x9 > -#define AARCH64_DEBUG_ARCH_V8_8 0x10 > +#define AARCH64_DEBUG_ARCH_V8_8 0xa > /* Armv8.9 debug architecture. */ > -#define AARCH64_DEBUG_ARCH_V8_9 0x11 > +#define AARCH64_DEBUG_ARCH_V8_9 0xb > > /* ptrace expects control registers to be formatted as follows: > > -- > 2.25.1
On 6/7/23 09:46, Andrew Burgess wrote: > Luis Machado via Gdb-patches <gdb-patches@sourceware.org> writes: > >> Caught this during emulator testing. >> >> Fix the constants. They should be 0xa and 0xb as opposed to 0x10 and >> 0x11. There was a thinko while defining them. >> >> Obvious enough. > > I agree. > > Approved-By: Andrew Burgess <aburgess@redhat.com> > > Thanks, > Andrew > > Thanks. I should've said I pushed this right after posting. Sorry about that. >> >> Tested on aarch64-linux Ubuntu 20.04/22.04. >> --- >> gdb/nat/aarch64-hw-point.h | 4 ++-- >> 1 file changed, 2 insertions(+), 2 deletions(-) >> >> diff --git a/gdb/nat/aarch64-hw-point.h b/gdb/nat/aarch64-hw-point.h >> index c19681422da..2ff9ccb5c1c 100644 >> --- a/gdb/nat/aarch64-hw-point.h >> +++ b/gdb/nat/aarch64-hw-point.h >> @@ -58,9 +58,9 @@ >> #define AARCH64_DEBUG_ARCH_V8_1 0x7 >> #define AARCH64_DEBUG_ARCH_V8_2 0x8 >> #define AARCH64_DEBUG_ARCH_V8_4 0x9 >> -#define AARCH64_DEBUG_ARCH_V8_8 0x10 >> +#define AARCH64_DEBUG_ARCH_V8_8 0xa >> /* Armv8.9 debug architecture. */ >> -#define AARCH64_DEBUG_ARCH_V8_9 0x11 >> +#define AARCH64_DEBUG_ARCH_V8_9 0xb >> >> /* ptrace expects control registers to be formatted as follows: >> >> -- >> 2.25.1 >
diff --git a/gdb/nat/aarch64-hw-point.h b/gdb/nat/aarch64-hw-point.h index c19681422da..2ff9ccb5c1c 100644 --- a/gdb/nat/aarch64-hw-point.h +++ b/gdb/nat/aarch64-hw-point.h @@ -58,9 +58,9 @@ #define AARCH64_DEBUG_ARCH_V8_1 0x7 #define AARCH64_DEBUG_ARCH_V8_2 0x8 #define AARCH64_DEBUG_ARCH_V8_4 0x9 -#define AARCH64_DEBUG_ARCH_V8_8 0x10 +#define AARCH64_DEBUG_ARCH_V8_8 0xa /* Armv8.9 debug architecture. */ -#define AARCH64_DEBUG_ARCH_V8_9 0x11 +#define AARCH64_DEBUG_ARCH_V8_9 0xb /* ptrace expects control registers to be formatted as follows: