From patchwork Tue Jun 6 13:46:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luis Machado X-Patchwork-Id: 70652 Return-Path: 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 3C1E13857B8E for ; Tue, 6 Jun 2023 13:47:26 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3C1E13857B8E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1686059246; bh=74RqPYOZc8sxDyr6ywiX54pyfOh5Z+9WehxnoREFwcQ=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=A4+HqQaxzMxkLwaQx4BdfN3dI6BvmwtR0XNgHuPyglktcZPLnWQtDUZpK8LurtLYY RUYBQRcINUOAORA+1qfFBY4aJ+bVPrnf7e9rxcHR2tajAiQXHeM2viLsUmTUgj3L6p H6+lYkHgoJNe+yG5ZmlM2NiL1Ygpe1977OD1k0aQ= X-Original-To: gdb-patches@sourceware.org Delivered-To: gdb-patches@sourceware.org Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-he1eur04on2044.outbound.protection.outlook.com [40.107.7.44]) by sourceware.org (Postfix) with ESMTPS id 390AF3858D38 for ; Tue, 6 Jun 2023 13:46:59 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 390AF3858D38 Received: from AM5PR1001CA0057.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:206:15::34) by AS8PR08MB9093.eurprd08.prod.outlook.com (2603:10a6:20b:5b1::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6455.32; Tue, 6 Jun 2023 13:46:55 +0000 Received: from AM7EUR03FT004.eop-EUR03.prod.protection.outlook.com (2603:10a6:206:15:cafe::5) by AM5PR1001CA0057.outlook.office365.com (2603:10a6:206:15::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6477.19 via Frontend Transport; Tue, 6 Jun 2023 13:46:55 +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 AM7EUR03FT004.mail.protection.outlook.com (100.127.140.210) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6477.19 via Frontend Transport; Tue, 6 Jun 2023 13:46:55 +0000 Received: ("Tessian outbound 99a3040377ca:v136"); Tue, 06 Jun 2023 13:46:55 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 24c94b434d54c3f9 X-CR-MTA-TID: 64aa7808 Received: from c171d0f8c2f8.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id E9C9BC67-855D-4CA9-BF3D-EC672FAAE6E0.1; Tue, 06 Jun 2023 13:46:48 +0000 Received: from EUR04-DB3-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id c171d0f8c2f8.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Tue, 06 Jun 2023 13:46:48 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Au6/PmmyZnXHYtAODZLLr9eEqKD/1GtbnprRkmTd0rX1zOOPtCxpWIPVs4Hreh3oeWz5CnOw9s4H0i0ex8ZXlyiLUkAtjgRS+jWq5LM3YmN6CX2f/4pIffZbcWrj4XUiqmp6KthxKsZYcfyzwfQ+OlmEkobOj5J5HOp1FWSUCWwWcLCnOd+V89hY3NIH16I4Vdv+W3bgzPVibBDgNd+Q9qce4WuvlEs1UdtqO8oITj0uT2ba/5t2jerAlWwcltL29ilMy+iXhbJkgJmyShGw6xRg7Nk84LR6j2dVOeXIKDgGw1AQr0XNM23joUj0a1N6HQ9D6otA/YuMigEPasTfzQ== 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=74RqPYOZc8sxDyr6ywiX54pyfOh5Z+9WehxnoREFwcQ=; b=PKrAOdgOG3OyTxpYfvT9Wkt/XHSdLr0LyvSNiraKHY9bj0MDUvJhMxiVG4d1k3xtCdvVGExTuEjZqGcIvwDO11MFojlc626AhWkC34v6EG1PGxHH3kC8oP70llJzwMIDPRJUxHMpT4ANJ2sxC0sJR8ezVveXGdjitke8f6PLO5hcyKaqvWqnGOzJQsEFVJXpeCmx1DMXyxE6ES1sZteCiA6fcKeYUKWqyu60AwDbt5Ts30foZzsUJ8ZqJYdHX4CYpW7xTYDTjppn9vPo0Ui7HWGOGuWmE575reRGx4iS2dkkzi8NZ1uVOu2ecdRNq30QBr5w4zS/H2EmfhniPsCyNQ== 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 DB6PR1001CA0001.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:4:b7::11) by AM9PR08MB5970.eurprd08.prod.outlook.com (2603:10a6:20b:2df::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6455.32; Tue, 6 Jun 2023 13:46:47 +0000 Received: from DBAEUR03FT007.eop-EUR03.prod.protection.outlook.com (2603:10a6:4:b7:cafe::41) by DB6PR1001CA0001.outlook.office365.com (2603:10a6:4:b7::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6455.33 via Frontend Transport; Tue, 6 Jun 2023 13:46:47 +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 DBAEUR03FT007.mail.protection.outlook.com (100.127.142.161) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6477.19 via Frontend Transport; Tue, 6 Jun 2023 13:46:46 +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; Tue, 6 Jun 2023 13:46:46 +0000 Received: from e129171.cambridge.arm.com (10.1.32.67) by mail.arm.com (10.251.24.31) with Microsoft SMTP Server id 15.1.2507.23 via Frontend Transport; Tue, 6 Jun 2023 13:46:46 +0000 To: Subject: [PATCH, obv] [AArch64] Fix gdb.base/memtag.exp failure Date: Tue, 6 Jun 2023 14:46:44 +0100 Message-ID: <20230606134644.35663-1-luis.machado@arm.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-EOPAttributedMessage: 1 X-MS-TrafficTypeDiagnostic: DBAEUR03FT007:EE_|AM9PR08MB5970:EE_|AM7EUR03FT004:EE_|AS8PR08MB9093:EE_ X-MS-Office365-Filtering-Correlation-Id: 2ea853b8-2aff-436f-7a2c-08db66947db4 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: 2Cot9gjCDuPOHi13RjX2I1ojSSt2457qVvxg5UUkg43u5zsBhi3isAdmL/fs3lJLAF0lYdOzMS/dNl5rcVGMQK/xzeXRDCyNKFd4u9OQBbqVhTnuZnnBgsnJTwfuXoacDpmYsLd6g0vrCGY6xojgqfhS3AUtJcuD9ifaKlGluKBeaIOO2wcvlkKj8+ko3NXYPfMJaN1axoHxGYQVSGbLJi5cKvM1YekDSHGl6imEn8KoXarwEfAL1SsWtihvFcStOVZ2LDoEylhNObSodq1gUkVym67BkTgNC3kRL8cxFmlfg9D2A2LFDcXxNNu+oMwwPNvATEcd4RO4N739G8WgOID4Zkih8A4yKCUcG3KWC6NutCHszy48nLVlzQmwEw6xXe/33PLBSiLiOjNHoIkPsiyvUwx7SgXNEfhhh0ZH3ozNvBblYtIuQlw93pi6P7JIXm+azpnm2kCDVxkYwkbpHIo4q/+6pLPTtI3dlQFv3+lXcAyjCssG5az/WrseZiL5U73bjv7rbrAtrnhAod9VQ97rihrKSicTJvRa5RKo5/O9c+fsDUuyj9QHSeA9+qANfz3XHAMoFURuiFRYUoEk23wDa9p3rHyEjyrIgu/iYWhrx5pFHAKA2DrhuKRbf/waB4GkPTzovWIHWUSbwcQjJXCUwW4I/NVuoB3kjZyVWqMJ+yid3kcxF3v4l4/IoTOO90PYpwOIhQEmFk9gQJJsG0Uo00/oOJluKH4G+Y7skSsmW5875Y6Lb10vYMFfy84TaY0T81ejpY0f1irZKE5mkw== 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)(346002)(136003)(39860400002)(396003)(376002)(451199021)(36840700001)(40470700004)(46966006)(36756003)(40460700003)(4744005)(2906002)(82310400005)(478600001)(86362001)(41300700001)(8676002)(5660300002)(8936002)(82740400003)(316002)(44832011)(356005)(81166007)(40480700001)(6916009)(70586007)(70206006)(83380400001)(47076005)(1076003)(2616005)(26005)(186003)(426003)(36860700001)(336012)(7696005)(36900700001); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR08MB5970 X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM7EUR03FT004.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: dff500e1-6ef1-4095-d780-08db6694786d X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ilE+/f/MXDsarFU8O9du3GyYp+jd6yTWfgIZF/jPAFQsAiTOEXya9W2UFMRz+GFooiYVU9gIrjVtZc7dh2uPCxJLCZySby13odBaEYKy1HKHnFIe53BIFmqguNYPb69VfchFuMmfOri3watzB6f5hxID54dfSkUDlYdEb+n/QgpAJjczHk1YXfgor7hyW220fpSOPML8tNUPSsmlVI0QvRbiqAh8g588yWZKEXGSq7GxWOnkPj9zPHTzz9YoUH9Vsspnz9KHdf8Xqik6eZH7DFgVWmgaYXGVL6Y4jrWsUcIaDHSaPRbtPNeyN/KhjtIuwxIt4DzMQ45QsFnsNfdcaZfgBQbqQUn0hYugmxt1J5faEqoaB3WnMjtoH8BFgQiB7CqpBMJ4zN8xleVwcVt/4h5dPCgZeoMnMsO85073+CUUUVjdZaJs74wBiR2nz+e4oOz6p/6bZuD4XGQHJYHO81EApwDIF3QlO6CmMONi4ztqFT12aLr4zvKOT5nt9RP3ObS+gvz30Q4+gHW1sqsFwnEVuibab+qzZSSeGtSDZ1IHRYoqjNhBuqhJsxkeZGXiULxERllfsYRzi2klvPgz3tF3mOeXhTgd6i3EZhehMIfRMmhc474VDGKSoyv1NZwBzjWZeAXPmrSm2BXxOpKwXjZ+d+K7yPNDbIIrLPnIxDDrgPLYxlPquRoE5qilpPjfo8EiLaCJKez3qe5bM0P9iZYU+pCXaBDIOzNMHsF/6g8= 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)(136003)(39860400002)(376002)(396003)(451199021)(40470700004)(36840700001)(46966006)(8676002)(8936002)(7696005)(478600001)(41300700001)(5660300002)(316002)(1076003)(26005)(44832011)(6916009)(70586007)(70206006)(2616005)(83380400001)(186003)(40460700003)(2906002)(47076005)(426003)(4744005)(336012)(81166007)(40480700001)(82740400003)(36860700001)(36756003)(86362001)(82310400005); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Jun 2023 13:46:55.2604 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 2ea853b8-2aff-436f-7a2c-08db66947db4 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: AM7EUR03FT004.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR08MB9093 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Luis Machado via Gdb-patches From: Luis Machado Reply-To: Luis Machado Errors-To: gdb-patches-bounces+patchwork=sourceware.org@sourceware.org Sender: "Gdb-patches" While running this test on an emulator, I noticed we're failing to match the output message when "memory-tag check" is issued with no arguments. That's because I coded the message using "error" and missed a period at the end. Other similar messages are issued with error_no_arg. This patch changes that call to use error_no_arg. Tested on aarch64-linux Ubuntu 20.04/22.04. --- gdb/printcmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gdb/printcmd.c b/gdb/printcmd.c index f9517e6e086..d8d97493bab 100644 --- a/gdb/printcmd.c +++ b/gdb/printcmd.c @@ -3196,7 +3196,7 @@ memory_tag_check_command (const char *args, int from_tty) show_memory_tagging_unsupported (); if (args == nullptr) - error (_("Argument required (address or pointer)")); + error_no_arg (_("address or pointer")); /* Parse the expression into a value. If the value is an address or pointer, then check its logical tag against the allocation tag. */