From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2048.outbound.protection.outlook.com [40.107.20.48]) by sourceware.org (Postfix) with ESMTPS id 229A33838209 for ; Thu, 9 Jun 2022 13:07:02 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 229A33838209 ARC-Seal: i=2; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=pass; b=PAv1lOfhWqN7UdeNss1UWliIrEVqR0qzJN8sCBRiot1cVc6t9Ybe2mXvkPVa6w9UW+5HY37CHnY+8CiuGVVe6wcVUTReZzYRVVbkVqQBxhPimlcCWYpZFUvx6IsXY1Nmsgm5js3GzidZlUCSOUU026yixmXpjd4aGSUvwIOLhQixl8XwPiEtLIsr17qOO7psvGgAPZtCSHauyu3uTnrzmQBh2q7Exmx8xf1w/332jUE2KjARuUkFLn+0qj5K3xaEKc2uhBShqgh34/AHmJv/LRRucAj3pQspjuP8qaf9g+nj7/AOLSVsRsFYa7G4x3zJLAJdR59qhWvWW96iS6jmUw== ARC-Message-Signature: i=2; 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=Z7xD5XmiGVZcBtAjT4lxoDzUExGykjBQj9cPLqxdCQc=; b=FJbrm1zWZnWxAw/g2YCG9tWPhJTYlkK5uRVcJpEeqPtAXKTKPIBk5hstMTkklq86/H5nx5JLXsNvfJ+pzBvbfBZTOIckhFnDIXIESODKZvD7abKozvYzON5mV+/Nly5oUDjIQv4b/qQlXnYgUVCKRgFx+bGSxiLAz84ZQyaq5qT5wfAvLY67tUqDP6C6DEvwCsqZD8JFV7No5bzfhU8prIexf3jBJ54z58VnoMn0JowlzWtRChKdanZ6OFo7N8U6vnxZXcT+UtdSBGWtOD1H1kxDv6JMA8VWhMVF+PYUczeYBBb2U80rFyKyFsGoxbb0c38os/M2p7GwnGvfuQ4u4A== ARC-Authentication-Results: i=2; mx.microsoft.com 1; spf=pass (sender ip is 63.35.35.123) smtp.rcpttodomain=sourceware.org smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com; arc=pass (0 oda=1 ltdi=1 spf=[1, 1, smtp.mailfrom=arm.com] dmarc=[1, 1, header.from=arm.com]) Received: from AM6P193CA0130.EURP193.PROD.OUTLOOK.COM (2603:10a6:209:85::35) by AS4PR08MB8141.eurprd08.prod.outlook.com (2603:10a6:20b:58c::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5332.12; Thu, 9 Jun 2022 13:06:56 +0000 Received: from AM5EUR03FT063.eop-EUR03.prod.protection.outlook.com (2603:10a6:209:85:cafe::62) by AM6P193CA0130.outlook.office365.com (2603:10a6:209:85::35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5332.12 via Frontend Transport; Thu, 9 Jun 2022 13:06:56 +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 AM5EUR03FT063.mail.protection.outlook.com (10.152.16.226) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5332.13 via Frontend Transport; Thu, 9 Jun 2022 13:06:56 +0000 Received: ("Tessian outbound 1766a3bff204:v120"); Thu, 09 Jun 2022 13:06:56 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 8366164885202134 X-CR-MTA-TID: 64aa7808 Received: from 984a4ade3dcc.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 87FDADA2-9AA4-4116-B965-D66889892C61.1; Thu, 09 Jun 2022 13:06:49 +0000 Received: from EUR04-VI1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 984a4ade3dcc.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Thu, 09 Jun 2022 13:06:49 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bBTghxJDg4W2i1eEw/3VBXX/1jPXI9JLqFoJBTcJFxepE6pGl5G6UFVsL/8XqJJaVrUHHK/3U64jRan0od6vpJRZR8y3wTE9d/G/FuD7RPOg/VkwPMPV87FgjTeNF1RH58ekwELNm/UpcZrG7LVUlTab5XQzxRR0rjJ4mr34GNIRJ9KvB9CJYe4z8koJPGh5Y8p/S/KlbQuhIBTOiudAdV+1uvpKTPrCdGrkm5QymmbwnSQazy74sVqCLTymojaQ4XlT0aPn/62Gd5rYrWrDHBcYoU/x6oazWoNH+rR3emT5Sprx6CivzKGA+54GOkY39TOqqqDMGLDGwJSn6N3RGw== 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=Z7xD5XmiGVZcBtAjT4lxoDzUExGykjBQj9cPLqxdCQc=; b=Oo2q86FwGMN/pjtyaCKWhPMlSAqWCxPHCGjn7km50S9cbqyAOQ744Nf89WQSraoj1sPcWW7cLpukHJLZR9puA2fxVEONN6W8fGQz3IxQ9rhLvcqpIBjoumIdhRhO51sUmq/ybLD5Xvv3UpCmHfBumcZIfeoiyENULtcomIUe4qDfdiL6E3iuzfrwh/C5VWi7/1viwbtqWK+QReni2HDuPA3S7dmL+Q90F2Ydhm2Ls6jWNXjp6LdYdEOIGTsRd8c5EaxoSJVYyZHORQRtlfbon2gGw7Q8d2zGRGge3f9qeghjDSrVNB7HwsntEzmenR9Hj0roNMK5AUG/NryGgR7VIA== 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 DBBPR09CA0035.eurprd09.prod.outlook.com (2603:10a6:10:d4::23) by AM7PR08MB5318.eurprd08.prod.outlook.com (2603:10a6:20b:104::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5314.13; Thu, 9 Jun 2022 13:06:48 +0000 Received: from DBAEUR03FT051.eop-EUR03.prod.protection.outlook.com (2603:10a6:10:d4:cafe::7f) by DBBPR09CA0035.outlook.office365.com (2603:10a6:10:d4::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5332.13 via Frontend Transport; Thu, 9 Jun 2022 13:06:48 +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 DBAEUR03FT051.mail.protection.outlook.com (100.127.142.148) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5332.12 via Frontend Transport; Thu, 9 Jun 2022 13:06:47 +0000 Received: from AZ-NEU-EX01.Emea.Arm.com (10.251.26.4) by AZ-NEU-EX03.Arm.com (10.251.24.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2308.27; Thu, 9 Jun 2022 13:06:47 +0000 Received: from AZ-NEU-EX04.Arm.com (10.251.24.32) by AZ-NEU-EX01.Emea.Arm.com (10.251.26.4) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.27; Thu, 9 Jun 2022 13:06:47 +0000 Received: from e129171.arm.com (10.57.38.254) by mail.arm.com (10.251.24.32) with Microsoft SMTP Server id 15.1.2308.27 via Frontend Transport; Thu, 9 Jun 2022 13:06:47 +0000 From: Luis Machado To: CC: , Subject: [PATCH] [aarch64, testsuite] Document the ARM_CC_FOR_TARGET testsuite variable Date: Thu, 9 Jun 2022 14:06:45 +0100 Message-ID: <20220609130645.246513-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-Office365-Filtering-Correlation-Id: 5ee24e5c-56ed-4729-d070-08da4a18ee83 X-MS-TrafficTypeDiagnostic: AM7PR08MB5318:EE_|AM5EUR03FT063:EE_|AS4PR08MB8141:EE_ X-Microsoft-Antispam-PRVS: 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: p5xqTxOh7edD8N796U8sIFdOngYYloVsqCrAx5PkF/f/tW+ZtgUWKBgbPYu8yj/lN0tRtULWVeNowc7cZ1F+yOBDuJ0LP9lwtKHdpJ/tB+dUlhcmhmy/enr8MvmjueyPI6n5ZHSWlMRfiemhhnDZq7Fepu151HMWfK7L6xkSS+vG0iwqruoyhJ1sqJhE3uOHzXS/R2PTX77T+5zZHRyDDzysX9OSbAhlJOSrxp4303DJ7KZRHRJo0qmToDYO5HmLl2ZH5OLAHQkCPLzKXUwRFvN5b7jC8l3/8w5JOA56QVWcEiDa0SwBlzMg7K2ASkdt0hjBp3PlYbKNzR6E3Cg7n90T8YY0A/HAT1ImgjObThZ610/chtNfZK011WQk58cFR9RPt6rJUjzU8yFBCWPb5QFt8wOCI/JwEG1YCdBIZoLBi+lUArQY6CUZLFvy8mjJGhK4unsIpTI8V/k4Lev3hS4jChwxZ0cWZEvkEbPrM8Y4EkK/gjXOZnbXVz4WEP4YJSx188mWHkxno2ga9WR77g85CO0G2RLN8xw9hltE8cMXMBQIVkDgBqlAPhZquciyJwNll1xSmAbkur/RrYhxP6SjfNNuwlH+8Wc1bSuWyuOd4EI00tDMrc/nP54bUK0kD87vYxG4k/5KKVAHJmZ74hHLMAWJL/83OK5vR2qouKzHCWhFaVgwQdxAOiOBGX/dpvYDo6clzfEzAUdDxXeFEg== 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:(13230001)(4636009)(36840700001)(40470700004)(46966006)(356005)(7696005)(8936002)(82310400005)(2616005)(2906002)(5660300002)(26005)(36756003)(44832011)(8676002)(81166007)(426003)(70586007)(70206006)(4326008)(86362001)(186003)(1076003)(336012)(36860700001)(47076005)(316002)(54906003)(6916009)(508600001)(40460700003)(36900700001); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM7PR08MB5318 X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM5EUR03FT063.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 05c48199-2e01-46f9-5fbd-08da4a18e948 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: D0rFS8omY0JPl8syM2NZgeuomEdEnu6o4NQVDzGNDe9dam/RCzlFqrjJhHZee1CUWp/FD456nt5+WaRdc0I8zRUu+OxTmdZ3R2LJ2CXjiF9iX52MlT3erGvFvPfHehVbXnmi4Uj3jfLP6nxZ+bwTET7+slW7/OeZrZGVGds0NK1No7SklGChrAhMYSkl5K6ZV1nY13vnR2EvqhF+b7BVFjlHreUzxVDs0EWdKf5WfseVXVSKKxuoGOT+9xm3B+Z4dMo8wcom8h3CtoxPLXJbgP+zCXCa1dXgplg31dw7d7mq/cMER1Q01NbVOMeNCW3Q+SmK/Yha4jdjBNxkUzTIbYAfxrD0h4Qd0cDWWpjLns/7eLZu+vVwdHi1OM8NQ9r454QTXbDvmoNb6tKeYRe402UQ/VW2dFz4YH4Ig5U4+GJdvYgockOHGK2JWJjpfjQQN4WhoVDgxw/2hRjW6G8yjAbom3bYSNYgd88rcer3ZiroxjUQFLBFmUIAKEltDp8VUpkvAjcqLzjNl3acT1Jyzu+S3grhjj3jdtEMgUGsyHoVU0MpHfzxwpb7D11B71FMz+o+Y4EuxPtYbCD5CnIhdBe7nKC2kVG5V35v5DeTL4bCq8SoNytBZKXTwug2MLmAgNTq4D8SpeCiD0tU13NOoYP8LlkJupJwi7IEfpu6rLe9D2NgvghqkSR+5AgfwuJQ 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:(13230001)(4636009)(36840700001)(46966006)(40470700004)(1076003)(47076005)(81166007)(5660300002)(36860700001)(86362001)(44832011)(107886003)(54906003)(6916009)(82310400005)(336012)(2616005)(2906002)(508600001)(8936002)(7696005)(70206006)(70586007)(426003)(8676002)(186003)(4326008)(316002)(36756003)(40460700003)(26005); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Jun 2022 13:06:56.6974 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 5ee24e5c-56ed-4729-d070-08da4a18ee83 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: AM5EUR03FT063.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS4PR08MB8141 X-Spam-Status: No, score=-12.6 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-List-Received-Date: Thu, 09 Jun 2022 13:07:05 -0000 This variable is useful when exercising AArch64 multi-arch support (debugging 32-bit AArch32 executables). Unfortunately it isn't well documented. This patch adds information about it and explains how to use it. --- gdb/testsuite/README | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/gdb/testsuite/README b/gdb/testsuite/README index 3a34dcdd154..5b3fde75ece 100644 --- a/gdb/testsuite/README +++ b/gdb/testsuite/README @@ -736,3 +736,31 @@ Use [is_remote target] to check whether the DejaGnu target board is remote. When what you really want to know is whether GDB is using the remote protocol, because feature X is only available when GDB debugs natively, check gdb_protocol instead. + +Architecture-specific settings +****************************** + +This section documents architecture-specific settings and flags that can be +used with the GDB testsuite. + +- AArch64 (Linux) + +The AArch64 ports of GDB and GDBserver support debugging AArch32 32-bit +programs running on 64-bit state. There are some tests under gdb.multi/ +that exercise this particular feature. + +The tests will attempt to find a compiler capable of generating 32-bit +executables through the ARM_CC_FOR_TARGET variable. This variable should +contain the command line for the compiler, including the full path to it, if +the compiler is not in $PATH. + +If ARM_CC_FOR_TARGET is not set, the testsuite will guess some compiler +commands. If none is found, or if the 32-bit executable generated by +compiler can't be executed correctly, the tests will be marked UNSUPPORTED. + +The list of 32-bit Arm compiler names the testsuite will try can be found +in gdb/testsuite/lib/gdb.exp:arm_cc_for_target. + +Example invocation: + +make check-gdb TESTS="gdb.multi/multi-arch.exp" RUNTESTFLAGS="ARM_CC_FOR_TARGET=arm-linux-gnueabihf-gcc" -- 2.25.1