From patchwork Fri Jul 24 19:20:53 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Vahedi, Shahab" X-Patchwork-Id: 139917 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 8444E4BA2E07 for ; Fri, 24 Jul 2026 19:22:46 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8444E4BA2E07 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=DvLhaQzJ X-Original-To: gdb-patches@sourceware.org Delivered-To: gdb-patches@sourceware.org Received: from SN4PR0501CU005.outbound.protection.outlook.com (mail-southcentralusazlp170110003.outbound.protection.outlook.com [IPv6:2a01:111:f403:c10d::3]) by sourceware.org (Postfix) with ESMTPS id 5132C4BA5436 for ; Fri, 24 Jul 2026 19:21:31 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 5132C4BA5436 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 5132C4BA5436 Authentication-Results: sourceware.org; arc=pass smtp.remote-ip=2a01:111:f403:c10d::3 ARC-Seal: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1784920891; cv=pass; b=x0pSunbrxpUIOZbn27ca5p0Jzar92tiDHpp3XYBkmVRzs7wP2BJs8pTjJdu8tRnsLmPuVfvO5zgH1Qzp6qtYt9wErhrAa8zeZ+PYNF3rDstya6zPMMu0PLl99QnZrLw4Eq83wCiLZVSWVaLt9TUwhu7uE6nubOI4leM6+gTA/BI= ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1784920891; c=relaxed/simple; bh=x3TXm8RbuNalK3ZCKiplmILaNkdhMd8cAbBuxp1LE08=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=ZL7N89pEISnp9n+gvYAnHJmkGI3SsxtDvFwlCR0nXLTMdgW83+XZBSGrBpU+3HlbalW8mZfTLqQ6KoptLvs4euH86XkijWnBxXPMYPjKV0GZMQzM3JsVwBcxvf94yxR6IURLmgoWVXXmmqkIE7NgjderWC8NDeKw14Ilkhm7I+4= 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=DvLhaQzJ DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5132C4BA5436 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=a/dWX8qwhmsTABwEDLgX3DynQQPwMU6kRTuCTG9TmC6J2H7BQ9ACSWdwLN9l89eZo5fWttJuPXri4vRWC0F4fC/J769v91mkfnF/oQGZjbvtY6XpQBPPPM3JOOuSAq2RtLal/8k+HOWbOfTej3BEdH8qi9QhamxE3QvPZnj4zRb1f0v8VRliPf9Bl//whKzAh0GeojTDSJVeiSLdxUW4xM5KRUEKUUaxbT2zzDBsLtESRo3vaku1Sz/3MrkJFBrJmN1lDK3HDDcHOnSO9XAprrI5r0EYmAFoWPcp7jDzGzi6cCp2NzLZvdMEj1ee+nGC6xV3JsuPFU2tsK5OPRsZFA== 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=k74uA7wvjFJch7MDGiEc4zP4gw1zA/q9Ixkmjfa+mTw=; b=L6TIRqobMERfr4bV69R9B6w4bbqm58z1319UsgkiU0XY+gjVW4O6Cv+NIlyqi1FzpuofXKelF0Hb/etyGy//kyPk3F78PQyLNjuR2UHOuNVqCGDiAR3pKovBcSvpknRFuUf/Wse7/wJ6jUGg4Q2AJvDCc23vQMyzIGNXR3PrcUHgvpGYWOzcogkQdMut/iTDtryqeVHUb2tVdfZfAavrtyem1nL3R58L1FMcvzxWRlg3FeCj70FkMZUvdR4QXgEBTggqVYQR8EVyoIabgMkfg9e9bHWS/omdwPjCsCdM1Ra9ALlq3uE9Zo0cotF6Kgbs/JuDuwRGIxLjT4BFMPiODg== 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=k74uA7wvjFJch7MDGiEc4zP4gw1zA/q9Ixkmjfa+mTw=; b=DvLhaQzJtxLDI0JpA/EnmUL1G+ZBsjiVE/kiWPW/CJ5HFFMjeMVdyrOhducOREIV5qHjYTTPUj/jLJXGcBpV2LDUlgbalAPLawEt9SjntE5QysMPEiA3WAsDDVvKO1oRzNrZbS6ot1Ye9dQeLvxLi8+3CzndnKGxlFv55fWEnkU= Received: from CH2PR03CA0016.namprd03.prod.outlook.com (2603:10b6:610:59::26) by SJ1PR12MB6122.namprd12.prod.outlook.com (2603:10b6:a03:45b::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.245.10; Fri, 24 Jul 2026 19:21:26 +0000 Received: from CH3PEPF0000000C.namprd04.prod.outlook.com (2603:10b6:610:59:cafe::5e) by CH2PR03CA0016.outlook.office365.com (2603:10b6:610:59::26) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.245.11 via Frontend Transport; Fri, 24 Jul 2026 19:21:26 +0000 X-MS-Exchange-Authentication-Results: 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 CH3PEPF0000000C.mail.protection.outlook.com (10.167.244.39) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.270.5 via Frontend Transport; Fri, 24 Jul 2026 19:21:25 +0000 Received: from atlantis.fritz.box (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.41; Fri, 24 Jul 2026 14:21:24 -0500 From: Shahab Vahedi To: CC: Shahab Vahedi , Lancelot SIX , Simon Marchi , Shahab Vahedi Subject: [PATCH 1/2] gdb.rocm/watchpoint-basic: use gdb_continue_to_end Date: Fri, 24 Jul 2026 21:20:53 +0200 Message-ID: <20260724192054.11399-2-shahab.vahedi@amd.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260724192054.11399-1-shahab.vahedi@amd.com> References: <20260724192054.11399-1-shahab.vahedi@amd.com> MIME-Version: 1.0 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: CH3PEPF0000000C:EE_|SJ1PR12MB6122:EE_ X-MS-Office365-Filtering-Correlation-Id: b632d4a3-90ce-4fe2-5121-08dee9b8c146 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|82310400026|36860700016|1800799024|376014|23010399003|22082099003|11063799006|18002099003|10067099003|56012099006; X-Microsoft-Antispam-Message-Info: moNmsV8h2AubwbwOKkfujFsCYWOMUyAd16TBeEfN2IQf10Vt1VAUry3v1iY1QwvkpYoeijLcC3su12mPwubLmiHzC31Sp3/7DNa21C8UeRCAU3SOC6xfBdu16YEH8BoGmC+WBv9DsceTgbf66bjP6g++WZIDZToJNoXKstJIrdeAan5OosNvmenf7148ssq41puhTWINbtmYp0VoXSkwXs/cvQH9pnT+RVVFnEoe6inRdCtP5q9pEK1j3dG7rNadITeaLJjFfk/LexuSdjokXAsM7vfLiTK12Riwq4W93xh4GoXUgur5GMSfBSDBgNnu3Onoq4fLM8hQKlvI+2SN116OJ9RbOsDNgBHrbwFZRrsv0N1ALBtperW+ptRLTptYw7MLfaAYhHkBvIKYT4lsWSoUrL91tzWcq62J7GEP/EvQ6HaehfoHOypF191nquQCLD9tYC3182mAw3Gdr0hqXib0eIqhULlO9/HIJCK35RLU4XZYZhMNIdYKe0FfeKYBgU+jtPM2Z9Tqpek83zcTg2hggqFAn9y9m71eO6unaR74rHG1zFE/ObaizY4hWn22AWiGlENuQhjwkwvy9MG0yvcqx3bvqbGVVBfL06Xkf9yKO+XPi9jcDQFNf/ICLiTM2k06PBjJN9RhuUjKWsTNx3pzonRndZxXRRWQ70Ab9gI= 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)(82310400026)(36860700016)(1800799024)(376014)(23010399003)(22082099003)(11063799006)(18002099003)(10067099003)(56012099006); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: uFEudnUUOC//0b36YqzJe6EX2Fg0ArlDvJM8yc00FT0pl1dgOYcPUhUEVbruX098XFrW1Sq755qyECcyXTxi1mICvEhLnDeHnm9T10VJLdRj4RX9kVsQQzU+i5lBQkf5ev3DgIIlvFG2F0BvFGJFhOCZ2eBRtce4peuPnmUPYgIpiDmVH9R6e1lvB9jScFV4TiU4TBvZ3/ZugSum8A5azi7mBDE65mUtWRJ86JORv7oXaulHZSv7ieHsaj9fAlMUFwQtp8yLoeIAiAs0wBJDkbn/4nGO67b7ObfK7q8LAqMYs7S7NAx52JKWcBjTLL6yoqmrnHKC+YAlT0am0WBUUlHpQikQaD/lXwx2JyXiIJzNKu5kp2eifhvTnOL+JJEjcM46Hqwn381M6c7dmp0LdlupUtCNI6p3p9Kfg1wXFpzBRlxE1knOIEi6RLJwn72K X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Jul 2026 19:21:25.8749 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: b632d4a3-90ce-4fe2-5121-08dee9b8c146 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: CH3PEPF0000000C.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ1PR12MB6122 X-Spam-Status: No, score=-9.2 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, LOCAL_AUTHENTICATION_FAIL_SPF, SPF_HELO_NONE, SPF_NONE, TXREP shortcircuit=no autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on sourceware.org 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~patchwork=sourceware.org@sourceware.org Turn: gdb_test "continue" \ "Inferior 1 .* exited normally.*" \ "continue to end" into: gdb_continue_to_end [ "" continue 1 ] Change-Id: I91404df3f4c29f9c6e58d085dd4d36c317d134d2 --- gdb/testsuite/gdb.rocm/watchpoint-basic.exp | 28 ++++++--------------- 1 file changed, 7 insertions(+), 21 deletions(-) diff --git a/gdb/testsuite/gdb.rocm/watchpoint-basic.exp b/gdb/testsuite/gdb.rocm/watchpoint-basic.exp index 8d19b0dcba2..9626b32d5d2 100644 --- a/gdb/testsuite/gdb.rocm/watchpoint-basic.exp +++ b/gdb/testsuite/gdb.rocm/watchpoint-basic.exp @@ -53,9 +53,7 @@ proc_with_prefix test_host_watchpoint_before_runtime_load {} { continue_to_watchpoint_hit 5 17 "continue to watchpoint hit" - gdb_test "continue" \ - "Inferior 1 .* exited normally.*" \ - "continue to end" + gdb_continue_to_end "" continue 1 } } @@ -76,9 +74,7 @@ proc_with_prefix test_host_watchpoint_after_runtime_load {} { continue_to_watchpoint_hit 5 17 "continue to watchpoint hit" - gdb_test "continue" \ - "Inferior 1 .* exited normally.*" \ - "continue to end" + gdb_continue_to_end "" continue 1 } } @@ -102,9 +98,7 @@ proc_with_prefix test_watchpoint_before_kernel {} { continue_to_watchpoint_hit 30 40 "continue to watchpoint hit 3" continue_to_watchpoint_hit 40 60 "continue to watchpoint hit 4" - gdb_test "continue" \ - "Inferior 1 .* exited normally.*" \ - "continue to end" + gdb_continue_to_end "" continue 1 } } @@ -132,9 +126,7 @@ proc_with_prefix test_watchpoint_inside_kernel {} { continue_to_watchpoint_hit 300 400 "continue to watchpoint hit 3" continue_to_watchpoint_hit 400 600 "continue to watchpoint hit 4" - gdb_test "continue" \ - "Inferior 1 .* exited normally.*" \ - "continue to end" + gdb_continue_to_end "" continue 1 } } @@ -156,9 +148,7 @@ proc_with_prefix test_remove_watchpoint_inside_kernel {} { continue_to_watchpoint_hit 0 10 "continue to watchpoint hit" gdb_test "with confirm off -- delete" "" "delete all breakpoints" - gdb_test "continue" \ - "Inferior 1 .* exited normally.*" \ - "continue to end" + gdb_continue_to_end "" continue 1 } } @@ -189,9 +179,7 @@ proc_with_prefix test_multiple_watchpoints {} { continue_to_watchpoint_hit 40 60 "continue to watchpoint hit 7" continue_to_watchpoint_hit 400 600 "continue to watchpoint hit 8" - gdb_test "continue" \ - "Inferior 1 .* exited normally.*" \ - "continue to end" + gdb_continue_to_end "" continue 1 } } @@ -239,9 +227,7 @@ proc_with_prefix test_disable_enable_watchpoint {} { continue_to_watchpoint_hit 400 600 "continue to watchpoint hit 6" - gdb_test "continue" \ - "Inferior 1 .* exited normally.*" \ - "continue to end" + gdb_continue_to_end "" continue 1 } } From patchwork Fri Jul 24 19:20:54 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Vahedi, Shahab" X-Patchwork-Id: 139916 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 304DA4BA2E27 for ; Fri, 24 Jul 2026 19:22:08 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 304DA4BA2E27 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=fYKGL43G X-Original-To: gdb-patches@sourceware.org Delivered-To: gdb-patches@sourceware.org Received: from CH5PR02CU005.outbound.protection.outlook.com (mail-northcentralusazon11012028.outbound.protection.outlook.com [40.107.200.28]) by sourceware.org (Postfix) with ESMTPS id 18EDE4BA2E0B for ; Fri, 24 Jul 2026 19:21:36 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 18EDE4BA2E0B 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 18EDE4BA2E0B Authentication-Results: sourceware.org; arc=pass smtp.remote-ip=40.107.200.28 ARC-Seal: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1784920896; cv=pass; b=mazpBWHH5t8+FZHsSKHEgudj5qh5wF1hwS1LINRZENgx5KwHlaWB+W3nNfrfYcR3+Rhpk6mprQGxZJFSRmxP3sOMis4lw66opAO/eFChsBXIS7kR1doF1fpJPoHf70hQhzPLaQ6BeAt9M54fkD5CIBpNrqOuHgitJI/W4iTF8lE= ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1784920896; c=relaxed/simple; bh=oXs+yyxs6C+S1nG1dPqcMEsBfelsuSFKX00ggI2+cgw=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=CsY4DhLavsu82jW7dDZUmrsp7q1tdxIpeh4WKkBTkMddjAcaNXnIRAXNxhqXK6xNdvo0h59c/RIwGAF1JwclXxgnDdsFjE/zacXl91mLiHrhNsQihfUfh0Qr+45Z231w5el27UozK8Bg35pWrbUVh2TyRIgkB1f2hjhLXkVtnIk= 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=fYKGL43G DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 18EDE4BA2E0B ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=xa+0p2OYMVyb35Sx5tiJiEf5mUcJUHtEF/cHPBVezwYbc+xSyYzPbsrEO72YwtUL0g6PiE11RmDqeWVSIZU6GYtmAo0LtorOsDVmCnU68AtXOTUF6d0n4zDDKdFhMm+GmQ7pKaT+MORwIxOSl8m0kZ5+rOd3fZ0c6klMEX1jaJU+ndpgzNI64eKQZZDhiTY+uuwaDjOzGN2lG180LDjjrSRDsNIrZwvmDgxO9gzNCYCUfICxVirBmU6hAf8qmLzJQ2lt6CH43IuVzHZvgucYj3DFjmmFSlpN5FRi4/l0E60Git+HUUYsyf1Lj1tgiHbc8O+Mk2YB5TeTG2l42/ZZxg== 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=FSThChdZAhtm+Ma+fvjx+nBCtwvcto93hj8yoEINl3s=; b=YPCrEydB0dpzzz5lRlMy8B0QLWZPg8DyBK6V65uue/8yH0lDdDBZ8u/8mlXKw35VVMDGy5DdJHvzjcATiDKDgaq4rKnD4aJbFQWbNseQ//z9c1aR+8ucVFbCJVKnQXcnMIFsWavLV0vCS2yEcAaBU5rwWG+3du3APP3dpdoBW1rlfKTtkQn2ewQYZctCzIJnd0NoPbYlm6jfiuOPUB/R9FPr09/CKwUkakZFpL3eUIy4qMSOZ8Dy0ug/CHwnKRC36hHVMP3MTfuT/+Mst6UyCL3mjqrq9kYbojpRalcJJHRL+FyfkaZ017JQ5djEelG5REmyGvMKEiva6aF1TcxNcg== 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=FSThChdZAhtm+Ma+fvjx+nBCtwvcto93hj8yoEINl3s=; b=fYKGL43GsdG8xcFIxST7Cpb3BU3YzFvqQqN2Euuz3qNGB58XWv4Op8pNJxmtqYP98mKDcNUP1AfxZHjAXKIZNLwddkgcwAHyGH7C4XeakJgxq+YDHqioA1QX4tfWnyKbGMZ2Md4eqpWdAy7MyNW5ZIFrAVnulROwcpFuUoJAfIk= Received: from CH0PR03CA0269.namprd03.prod.outlook.com (2603:10b6:610:e5::34) by CY8PR12MB7610.namprd12.prod.outlook.com (2603:10b6:930:9a::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.245.12; Fri, 24 Jul 2026 19:21:28 +0000 Received: from CH3PEPF00000009.namprd04.prod.outlook.com (2603:10b6:610:e5:cafe::ab) by CH0PR03CA0269.outlook.office365.com (2603:10b6:610:e5::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.245.11 via Frontend Transport; Fri, 24 Jul 2026 19:21:28 +0000 X-MS-Exchange-Authentication-Results: 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 CH3PEPF00000009.mail.protection.outlook.com (10.167.244.36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.270.5 via Frontend Transport; Fri, 24 Jul 2026 19:21:27 +0000 Received: from atlantis.fritz.box (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.41; Fri, 24 Jul 2026 14:21:26 -0500 From: Shahab Vahedi To: CC: Shahab Vahedi , Lancelot SIX , Simon Marchi , Shahab Vahedi Subject: [PATCH 2/2] gdb.rocm/watchpoint-basic: add XFAILs for known configurations Date: Fri, 24 Jul 2026 21:20:54 +0200 Message-ID: <20260724192054.11399-3-shahab.vahedi@amd.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260724192054.11399-1-shahab.vahedi@amd.com> References: <20260724192054.11399-1-shahab.vahedi@amd.com> MIME-Version: 1.0 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: CH3PEPF00000009:EE_|CY8PR12MB7610:EE_ X-MS-Office365-Filtering-Correlation-Id: 626ed066-65fb-4375-3615-08dee9b8c287 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|82310400026|36860700016|1800799024|376014|23010399003|18002099003|22082099003|56012099006|11063799006|3023799007|13003099007|6133799003|10067099003; X-Microsoft-Antispam-Message-Info: RF5C2/urk70itbL23zL2a1ig+It4CjXuvGIYIaw+spgFPtvhJH6FLiWQsGeOzNvGyy1tgbFD5yLjgpV4YRWIYuqd18u3wx7esMM1YhTSiLJ1NWbAQfboMl4+NnxTAQpLHvfP+nFYEd2XxC36kFc8oKU+th/F5VgiFeyqiwg5LEBJ+WGxo39skIDDUC9fltzJguRGeIom5xCIvDPvXBtw7kmxFmMrbvKH/M8yZz47AbnX+jVLtzCEc5ExHqn1PIqBeinTaQb/tA6XVy2qciepaKk+QdFQadCSjJ7AaQDMLelxrpAVtjfBKcI8iKBpWSe4UuAaXukFeaa5nNgvKTAYldVAPSmQ+tvb877QzG/zx7kK+fasWPUR8+IlBjJL3phmzV6nrDVRhVA4Lhc/zbfb02ZsldExm+gOCf+QvoYHhXaQWAOqyxRcut9Vx37DwyBaeTLWR5HylmcHGqrVewmNmBJTOX6XkqkpzJpWVaMBT8eSfxB7oE3XMf32ajLtMdI5KnaGYbRARn3nHzBfYb4x8E+okP6qhup2w6chmQB40iot35FmpRclP9njhUtnkbNZztmnFWMFgqFcdUu8/AoYqinKT2DBMvvH2ZldarA7B8+qpsyNKXV8M449HAz0Y4+AWSv7/ClVzBahhknkFT5yCQ== 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)(82310400026)(36860700016)(1800799024)(376014)(23010399003)(18002099003)(22082099003)(56012099006)(11063799006)(3023799007)(13003099007)(6133799003)(10067099003); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: fZELALiYreypXfwnu7yhSDEi8/K/6m+bkAFgqfAIxSs51CgULZROI2efgOtz9DBcRnpdtOiVoJd4p6Evv6icjpKm1LJEd0H7A+tE9Us7PP5/Xnn9etXsZ1souMSADmzjeYz9/4AkXTYAibMN+TQdKqYxWiv335gp/AtmCVBnF87r1NjK4bbFic0eCf3uU2gsjPfBzJuphHKdWHAk6bjxH41Si16QCtIm0hwPdHN5yQxMkJIXwid6aDHMwYrcuthnHmoe8HJI1ADO6M4Wi0krz5iN0oJlQI91y4d4HXvOFzwFRObuNT8fA+KQAzBvlWN7iTHJcElGRCOf3oeNQvgzdJ3xllMDJBNX6gReFf8izunGTEYTa1lbBJC3sNTsIdrqREtdhAxcKvCtMEC5EIl8e6mb7JTpu5c0jcH7jxvUiySdC3OV8JlAr/zG6jZcp/fq X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Jul 2026 19:21:27.9563 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 626ed066-65fb-4375-3615-08dee9b8c287 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: CH3PEPF00000009.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY8PR12MB7610 X-Spam-Status: No, score=-8.8 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FORGED_SPF_HELO, GIT_PATCH_0, LOCAL_AUTHENTICATION_FAIL_SPF, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_NONE, TXREP shortcircuit=no autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on sourceware.org 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~patchwork=sourceware.org@sourceware.org Some of the tests in gdb.rom/watchpoint-basic are destined to fail due to a problem in KFD. This patch marks those tests as such on configurations that this can happen. Change-Id: Iafd40b18bf8eb7004c8653bca1407b8d86ca0032 --- gdb/testsuite/gdb.rocm/watchpoint-basic.exp | 78 +++++++++++++++++---- 1 file changed, 66 insertions(+), 12 deletions(-) diff --git a/gdb/testsuite/gdb.rocm/watchpoint-basic.exp b/gdb/testsuite/gdb.rocm/watchpoint-basic.exp index 9626b32d5d2..bc30726515e 100644 --- a/gdb/testsuite/gdb.rocm/watchpoint-basic.exp +++ b/gdb/testsuite/gdb.rocm/watchpoint-basic.exp @@ -26,14 +26,25 @@ if {[build_executable "failed to prepare" $testfile $srcfile {debug hip}]} { } proc continue_to_watchpoint_hit { old_value new_value test } { - gdb_test "continue" \ - [multi_line \ - "hit Hardware watchpoint $::decimal:.*" \ - "" \ - "Old value = $old_value" \ - "New value = $new_value" \ - ".*"] \ - $test + set hit_re [multi_line \ + "hit Hardware watchpoint $::decimal:.*" \ + "" \ + "Old value = $old_value" \ + "New value = $new_value" \ + ".*"] + + set ret false + gdb_test_multiple "continue" "$test" { + -re -wrap $hit_re { + pass "$gdb_test_name" + set ret true + } + -re -wrap ".*$::inferior_exited_re.*" { + fail "$gdb_test_name" + set ret false + } + } + return $ret } # Test inserting a watchpoint on a host variable before the runtime loads, and @@ -78,6 +89,37 @@ proc_with_prefix test_host_watchpoint_after_runtime_load {} { } } +# On some systems, KFD corrupts the watchpoint configurations +# during the first dispatch's queue mapping. This leads to +# watchpoints not being triggered, if they were set before the +# first dispatch. As a result, those test scenarios run to the +# end and exit prematurely. + +gdb_caching_proc target_has_xfail {} { + set xfail_arches {gfx1201} + + set targets [find_amdgpu_devices] + if {[llength $targets] == 0} { + # Can't determine GPU type, don't set up xfail. The test will probably + # not run correctly anyway. + return 0 + } + + # The test will run on GPU-0, so it should be the first of the list. + set target [lindex $targets 0] + + return [expr {[lsearch -exact $xfail_arches $target] != -1}] +} + +# This is used when dealing with the first watchpoints that are +# set before the first dispatch. + +proc maybe_xfail {} { + if {[target_has_xfail]} { + setup_xfail "*-*-*" "watchpoint configuration corruption in kfd." + } +} + # Test inserting a watchpoint before the kernel is launched, then hitting # it when the kernel runs. @@ -93,7 +135,10 @@ proc_with_prefix test_watchpoint_before_kernel {} { "Hardware watchpoint $::decimal: .*" \ "set watchpoint on *ptr1" - continue_to_watchpoint_hit 0 10 "continue to watchpoint hit 1" + maybe_xfail + if {![continue_to_watchpoint_hit 0 10 "continue to watchpoint hit 1"]} { + return + } continue_to_watchpoint_hit 10 30 "continue to watchpoint hit 2" continue_to_watchpoint_hit 30 40 "continue to watchpoint hit 3" continue_to_watchpoint_hit 40 60 "continue to watchpoint hit 4" @@ -145,7 +190,10 @@ proc_with_prefix test_remove_watchpoint_inside_kernel {} { "Hardware watchpoint $::decimal: .*" \ "set watchpoint" - continue_to_watchpoint_hit 0 10 "continue to watchpoint hit" + maybe_xfail + if {![continue_to_watchpoint_hit 0 10 "continue to watchpoint hit"]} { + return + } gdb_test "with confirm off -- delete" "" "delete all breakpoints" gdb_continue_to_end "" continue 1 @@ -170,7 +218,10 @@ proc_with_prefix test_multiple_watchpoints {} { "Hardware watchpoint $::decimal: .*" \ "set watchpoint on *ptr2" - continue_to_watchpoint_hit 0 10 "continue to watchpoint hit 1" + maybe_xfail + if {![continue_to_watchpoint_hit 0 10 "continue to watchpoint hit 1"]} { + return + } continue_to_watchpoint_hit 0 100 "continue to watchpoint hit 2" continue_to_watchpoint_hit 10 30 "continue to watchpoint hit 3" continue_to_watchpoint_hit 100 300 "continue to watchpoint hit 4" @@ -210,7 +261,10 @@ proc_with_prefix test_disable_enable_watchpoint {} { } } - continue_to_watchpoint_hit 0 10 "continue to watchpoint hit 1" + maybe_xfail + if {![continue_to_watchpoint_hit 0 10 "continue to watchpoint hit 1"]} { + return + } gdb_test_no_output "disable $wp1_num" "disable watchpoint"