From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id drEwIsDA2Gq7FAMAWB0awg (envelope-from ) for ; Wed, 21 Oct 2026 09:40:16 -0400 Authentication-Results: simark.ca; dkim=pass (1024-bit key; unprotected) header.d=amd.com header.i=@amd.com header.a=rsa-sha256 header.s=selector1 header.b=jT8ZySS5; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 6BAC31E051; Wed, 21 Oct 2026 09:40:16 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-6.4 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=4.0.1 Received: from vm01.sourceware.org (vm01.sourceware.org [IPv6:2620:52:6:3111::32]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id B11D51E047 for ; Wed, 21 Oct 2026 09:40:14 -0400 (EDT) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 9A4664BA23E4 for ; Wed, 21 Oct 2026 13:40:13 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9A4664BA23E4 Authentication-Results: sourceware.org; dkim=pass (1024-bit key, unprotected) header.d=amd.com header.i=@amd.com header.a=rsa-sha256 header.s=selector1 header.b=jT8ZySS5 Received: from CH1PR05CU001.outbound.protection.outlook.com (mail-northcentralusazon11010016.outbound.protection.outlook.com [52.101.193.16]) by sourceware.org (Postfix) with ESMTPS id 987F74BA23F8 for ; Wed, 21 Oct 2026 13:39:47 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 987F74BA23F8 Authentication-Results: sourceware.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=amd.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 987F74BA23F8 Authentication-Results: sourceware.org; arc=pass smtp.remote-ip=52.101.193.16 ARC-Seal: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1792589988; cv=pass; b=Abu4i3I4WO9MxdTmLnigjk+Bbh+Bxf2aakMYtkTKZxR1h5FfKry4DrK/IzoM1Lt0YNYO8ELe1rzpIiCiAe3ZjknskFjk/J+3MvFfKKl5R8F3axtOgSvaIaz4yX9Au65XDraI5elZaZF3dkwd36nTtjv+ygZVVOaVWPb/pKlEmgk= ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1792589988; c=relaxed/simple; bh=J3A2J/hxbDy254jbIm9LUDaSPYMgISxa3VhG6tHEMyE=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=gekcAKKe4qerhSxMGa4/U2vfLq8MNOeiTCR4hlvdf96IsS+MWzYs4IWu20SzSsHNGq8oOzTyzTsI1JfWkLOZ3rI6olKPbNoph8ypctWxyEGOAYxFKVsLz+5rG38CPrL4sK2PoKCh5z5h1v9QAjyZC6DLhJyMduF0Gc7gMhURPWk= ARC-Authentication-Results: i=2; sourceware.org; dkim=pass (1024-bit key, unprotected) header.d=amd.com header.i=@amd.com header.a=rsa-sha256 header.s=selector1 header.b=jT8ZySS5 DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 987F74BA23F8 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=iyn/JLL5ViV4yXMs+UBtAKJ4qvqJZUSseGhy40Y+3xswhq60aCI0K9Uk9uxTPHe45dX1HJSOZlCH4cC+AQA9kyMSCQxnGjsYNSqyt17AMv+rCASscjzVEKdWQ8tFxIZIsHD6Ob2t1Ui8BFBh2Z8BjeYE/8BkxBDWQZ99PCP85yV80pShAHOCepI1fliAxiOk1TmcMRCK+RvDBpRD98ZHWs2ebaIjCGe0OVYTn3KmCbz34lpgsr8PKpFsNMQ6zR1fVpc0yeRdzqgptiyNvj9apx5Z80tVklQf8wzjZrJGyyr07zCWXcXwrdgFhHyXCIPmX+0QXQt3T5EZsBZhuHIxHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=LJs9LxPYuOF7mqDmAYpCaABdILPncD6lpLUEyD8/qis=; b=KtijiyC1y+dw3BJhbPEUJRDvYFoEYP3fl/U9LUvcBuQJCokYFTLFnG3ifOjUK8Qt6WrC6F3AkmUeYiJfTKkU0DDdIIRwYPuS9Mlvi2HvsoGtf0wSmwxZ0tWRHE+UnNFcYdO1NEdiNpLVw3yRQEiH40oF9ukE9xV79EFoQfhnmpfhIOUo9J52ToSi8oSPsZtrPBk+op+z/rGcH5Ako/TFGmQSCeBlSY6p1EKwzqdnxB2uEPT7hlZ9vj0Pv4PuY8vn26yNnM0mmQH69c/e7FOVKRA+BKQCwPDIhEWK+VcLSsBvgMjb5BTIp/xdMGelKdMkzVwPqgnWeIvK3kHsW85EqQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=sourceware.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=LJs9LxPYuOF7mqDmAYpCaABdILPncD6lpLUEyD8/qis=; b=jT8ZySS5RonbnyVsnYX9sSqOK8565+lyjC/ASW3V9FCCgLlSWa4bTCxa13sKaFsFW6DnhtJJrL+H3gWjWf3sTdET7pIy/7QHIPrdU+lnf4ujB5j6RYRm+sanIqAOv3CYUJeHUi4u1PpLgMMoAsVtAAptIYraM4S/gEQucUNK3zY= Received: from PH7PR10CA0024.namprd10.prod.outlook.com (2603:10b6:510:23d::13) by MN7PR12MB219968.namprd12.prod.outlook.com (2603:10b6:208:632::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.546.15; Wed, 21 Oct 2026 13:39:39 +0000 Received: from SJ5PEPF000001EC.namprd05.prod.outlook.com (2603:10b6:510:23d:cafe::31) by PH7PR10CA0024.outlook.office365.com (2603:10b6:510:23d::13) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.546.16 via Frontend Transport; Wed, 21 Oct 2026 13:39:39 +0000 X-MS-Exchange-Authentication-Results: mx.microsoft.com 1; spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=satlexmb07.amd.com; pr=C Received: from satlexmb07.amd.com (165.204.84.17) by SJ5PEPF000001EC.mail.protection.outlook.com (10.167.242.200) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.546.15 via Frontend Transport; Wed, 21 Oct 2026 13:39:38 +0000 Received: from khazad-dum.amd.com (10.180.168.240) by satlexmb07.amd.com (10.181.42.216) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.53; Wed, 21 Oct 2026 08:39:35 -0500 From: Lancelot SIX To: CC: , , Lancelot SIX Subject: [PATCH] gdb/testsuite: Fix gdb.rocm/displaced-stepping.exp Date: Wed, 21 Oct 2026 14:39:16 +0100 Message-ID: <20261021133916.123674-1-lancelot.six@amd.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.180.168.240] X-ClientProxiedBy: satlexmb07.amd.com (10.181.42.216) To satlexmb07.amd.com (10.181.42.216) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ5PEPF000001EC:EE_|MN7PR12MB219968:EE_ X-MS-Office365-Filtering-Correlation-Id: 25199688-e566-41b9-10ae-08df2f78c0db X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|23010399003|1800799024|376014|36860700016|82310400026|56012099006|261009221227099003|11063799006|261009223027099003|18002099003|10067099003|6133799003|13003099007; X-Microsoft-Antispam-Message-Info: d6hMJlIIyv8emgSeTvQZ8VU9f8fGf0NWcfRxWV6KWPAxDdktuS1WRJLDnl7blNMKB94SQ6fmxTVh1eUAAQUI6yxS+kJda0vQvD23NoNfmuNbZTbBTCySjslfJmq2BD7/PX7u7njCaFizX6g3RgsWVksubu1kt4hmVHzNTVYngOnrEqvoFLoiXBD1mxuDP6a4iiKIV5eInSFWP/GJVNZAWHshz5vxHfMNHn9whqMVKH+r/Rwm96ihFkuGMmolbo2IgptMqEKGE4eTMvdHqBvyYnTnzEvpW9OQU6a/OUvvpxuVGzvAdOFg65NG9XFFgaBCtaAVHwTRPmXnXRdgNYqJNgbq2oHpSLsxkMKAtwhxoDY/WYcQQ/SHKgcX4aPycBaOYhuU8qz3H6LB05CL+3ZSzHGL60+BTBDfHLUGXXPF03EgFeUcEf9HfJwQXh2s3LVbh36Qfs50+cx3WfHw97y96pr+CZ6y15Xx4UHbpL6dQn91lw78SDcYyGTWeJrSF1w2TsoGUe8e/fweuJZ8WB61wDxEFW9RRFb7m0PT5G5C6v7YHdKYC9UAJzFz96W5I460HTuVDK/skc34eTQVjyd7cEd1MZMv/y0BxOuEpdVtIdaF5axMo/ld2VxxqMj6yjiLalN9IieSmThBU15AUCf0mvT/DmzDTQZofbl/02lcaiU= X-Forefront-Antispam-Report: CIP:165.204.84.17; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:satlexmb07.amd.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230040)(23010399003)(1800799024)(376014)(36860700016)(82310400026)(56012099006)(261009221227099003)(11063799006)(261009223027099003)(18002099003)(10067099003)(6133799003)(13003099007); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: /f8Nv3UqrWGt/Cqpn2PCD6zPAZysung2uSLhNCChWqJlRDWjOgLcy3WvpGl4pBwmnpu6g6a3Yr7zKGglPZwgKu8BYD05SQTZEm8sxUxZmEZQcCnPDESqHJVbDlwCnvoLI4xh/BkSY56xlJwiV4vAVoOQg0uXS6441XzPMmJTJfVYNrF1Ap+GsOd+Kl+9t4AZDFzaH2Mc3QvEWCTlPc57VHVEZJ31VfMZuFrOYGDSqe9YZJkOl2i1oxJbNxq7sVVt68MwojdJgtuc9LRYN/XIiHEsNzUSBejeXnjX34W/DVhN2iaaCxgwrbG1KSNo/2Iv5kmEndkwrQV6hbpMN8rllo6fO0Ncz6bWjazgDd94SBFaL3sX59+xFu4WYgilC2AKXyobEzzXffXD8GTLxLD98IxFifftML9k85k5BUR7YJfmLByf1438JPfNcOmbarQ5 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Oct 2026 13:39:38.6791 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 25199688-e566-41b9-10ae-08df2f78c0db X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d; Ip=[165.204.84.17]; Helo=[satlexmb07.amd.com] X-MS-Exchange-CrossTenant-AuthSource: SJ5PEPF000001EC.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN7PR12MB219968 X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces~public-inbox=simark.ca@sourceware.org The gdb.rocm/displaced-stepping.exp testcase currently fails with: with debug displaced on -- stepi Unhandled dwarf expression opcode 0xe9 (gdb) FAIL: gdb.rocm/displaced-stepping.exp: with debug displaced on -- stepi This is because when doing the stepi, GDB computes the current frame ID in set_step_info. This will go and evaluate the CFA for the current frame, which reads AMDGPU debug info, which is not supported by GDB currently. Current AMDGPU DWARF requires changes expected to be available in the future DWARF-6 standard (address space support), as well as llvm private opcodes (DW_OP_LLVM_user DW_OP_LLVM_form_aspace_address): $ llvm-dwarfdump --debug-frame displaced-stepping.0.hip-amdgcn-amd-amdhsa--gfx1031 [...] 00000014 00000018 00000018 FDE cie=00000000 pc=00001a00...00001b64 Format: DWARF32 DW_CFA_def_cfa_expression: DW_OP_lit0, DW_OP_lit6, DW_OP_LLVM_user DW_OP_LLVM_form_aspace_address At this point, there is no way to support this in GDB, so instead this patch proposes to fix the failure by instructing the compiler to not produce any unwind table. Tested on x86_64-linux + AMDGPU-gfx1031. Change-Id: I2e62270f39c9e96324ae01d401bafb46cfff596c --- gdb/testsuite/gdb.rocm/displaced-stepping.exp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gdb/testsuite/gdb.rocm/displaced-stepping.exp b/gdb/testsuite/gdb.rocm/displaced-stepping.exp index 2466a678f19..a72c19e5314 100644 --- a/gdb/testsuite/gdb.rocm/displaced-stepping.exp +++ b/gdb/testsuite/gdb.rocm/displaced-stepping.exp @@ -23,7 +23,8 @@ require allow_hip_tests # Since GDB doesn't yet understand DWARF expressions generated by the HIP # compiler, purposefully generate the binary without debug info. -if {[build_executable "failed to prepare" $testfile $srcfile {hip}]} { +if {[build_executable "failed to prepare" $testfile $srcfile \ + {hip "additional_flags=-fno-unwind-tables -fno-asynchronous-unwind-tables"}]} { return } base-commit: cfd8ea4e101d9793895d9b8b016da5c2ec6a672a -- 2.43.0