From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id H4S6K1a3amaebzMAWB0awg (envelope-from ) for ; Thu, 13 Jun 2024 05:09:42 -0400 Authentication-Results: simark.ca; dkim=pass (1024-bit key; unprotected) header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=selector1 header.b=nUK0QUD0; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=selector1 header.b=nUK0QUD0; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 9F8921E0C1; Thu, 13 Jun 2024 05:09:42 -0400 (EDT) Received: from server2.sourceware.org (server2.sourceware.org [8.43.85.97]) (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 4ED091E030 for ; Thu, 13 Jun 2024 05:09:40 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id BA5A83882121 for ; Thu, 13 Jun 2024 09:09:39 +0000 (GMT) Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on2047.outbound.protection.outlook.com [40.107.13.47]) by sourceware.org (Postfix) with ESMTPS id B34843882049 for ; Thu, 13 Jun 2024 09:09:14 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org B34843882049 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=arm.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org B34843882049 Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=40.107.13.47 ARC-Seal: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1718269757; cv=pass; b=W/Kdm5irkzUgwF8H2vgY7RiEPS8nNIvARe9fDzSMEbYEntXrRuzXE4ipFv8hLdCnc9wj5IDCRYMz4NK5/YpYNEFYxmyi5U+KSbmj/oNzKZMciFch5BcgmotLfzpTqdxKQPpEEMaKWghXljmLtNrSC/RcZDUgNg4CbEEB8mlzaVE= ARC-Message-Signature: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1718269757; c=relaxed/simple; bh=RmETYHRl97lEj9Q9Zy1IyUcmmDfcvvuU1M9VHj56F3w=; h=DKIM-Signature:DKIM-Signature:Message-ID:Date:Subject:To:From: MIME-Version; b=wUfL4SI7eYdD27cHqsdFcnPMx59eS1vJbvM0d0tQEKu2hrT6DtHwL6e6l70no26cx5bMevh+qcfDCpl34vsz7ITdkr5otaCGwK46sQeBHah7Cd8GWKMvrH3p5iYtq0n2MihmK0O7qF7o9xhpm9SrmkwHPPa6gAESSAaz6rJjtEk= ARC-Authentication-Results: i=3; server2.sourceware.org ARC-Seal: i=2; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=pass; b=AOXqR0m29OuvwYAyUectCFFoiPbQypwxwdwBMix1RitPrwZTlRqljoxKy6O1ylspF/vinwcE0efVg+e7CGPmFHMdZkMCx3ywUjiyQu8ysNtNv1y6lTlVChZsU1mVd2e8aNFzTsbIsO+/K2uC5ERnQ93KN9snajWOPq8wX+Miagl+lAR4KwsrjB1IXY4qpZom34652WbcogKl0eOLtOMB7ef7XUUh4wCExc2H4WkJOqFK6Oh6/Jh9goxusYEZWAxONID4fuxEckHk6ArN/HGmoi2EFXdMSkv7SAPRbSd8B/iwvSBgZGJD230ShjYk95ruNYvNSV+4ZOqzqiRg4KzObQ== 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=h7seNioEpwLDU2KYe0ytDa7GlwousAbjNFsoo+hrcNk=; b=hxjt8719EdZ2J5uMHlX05k/t+LXbWN2ri8GTYW3j7UaSxd31BB05U864yhi6U+5OSXoaXxUplE2/D6X0cUKedXsrg8kTKftLgqZtu7LZEtMLLHWhwhNoOv5O+yPacZEKZBK8aCYX47ZAVtFDGtlVeXlH4lBxP9LOUkpGU8uuX4egkDwlEtlP7mDE2qcIljltewsLjgdjskPRcfiqtWz8HNJjejnrKzST81zHCCVFwDOQ8JgtZXUAlxegyQDy/2aKBXKTK0Zhbh/Ze45Zc2zaLG4vAzwRl0vS6swyT/t0tDvOZNUdsjh7rV9DnX4ooTKNNvDwmSRpkhbRmZoUDt7Jbw== 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=arm.com; arc=pass (0 oda=1 ltdi=1 spf=[1,1,smtp.mailfrom=arm.com] dkim=[1,1,header.d=arm.com] dmarc=[1,1,header.from=arm.com]) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arm.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=h7seNioEpwLDU2KYe0ytDa7GlwousAbjNFsoo+hrcNk=; b=nUK0QUD0AXkhj10Cm63vLPQv3dTzv62LjiNqpAb1vt8hqp+KIaR29a3YHSfoMEoq9NhmflOLYNTMtR43HsV86BS3yiUMoxTVfNAcrr+R2s7vSPMsREYrt5T60S69B/wkJAhh6a6Ub/zKzng/xQPALeKLzyJEuRZ0G4po9O1Mxes= Received: from DU6P191CA0060.EURP191.PROD.OUTLOOK.COM (2603:10a6:10:53e::10) by AM9PR08MB6129.eurprd08.prod.outlook.com (2603:10a6:20b:284::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.39; Thu, 13 Jun 2024 09:09:07 +0000 Received: from DB1PEPF000509FC.eurprd03.prod.outlook.com (2603:10a6:10:53e:cafe::80) by DU6P191CA0060.outlook.office365.com (2603:10a6:10:53e::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7677.24 via Frontend Transport; Thu, 13 Jun 2024 09:09:07 +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=arm.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 DB1PEPF000509FC.mail.protection.outlook.com (10.167.242.38) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.7677.15 via Frontend Transport; Thu, 13 Jun 2024 09:09:06 +0000 Received: ("Tessian outbound e43fd1351ded:v332"); Thu, 13 Jun 2024 09:09:06 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 56610fbb3424fb27 X-CR-MTA-TID: 64aa7808 Received: from eec863be2cd5.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id D42BDA78-613D-4C00-9E5C-3F15D2D9C0F4.1; Thu, 13 Jun 2024 09:09:00 +0000 Received: from EUR04-DB3-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id eec863be2cd5.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Thu, 13 Jun 2024 09:09:00 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=A8B1lthFLPwkURQN8GVrSu7twUl/pXzxkbiGMY/PSJSFrGtqOnzUHlwv3qH/57D0qxkeR/LjOV/rFUaKbexUAfWujTSlPxHW9HkZNmB3DCA0araUjqh8tX1y0vFZfjJtiYXhGzMjBQRSoejyc72q+BZF7GxyrgudkmN4OHcheMVbiMwp0gGgQQmdImF31A3FJWSjyLz0PY+doutFVn7y1STq8bWyr6D4jB8gCwtQIBvVB2gC5yV2dlIQ3B6U7EXk7PxTxkoGqlupMKt2r5waT7Q3clxtUrAc80srrNl04GTavLxi1QXwxjLIDC/E+xcLk5cQmxoG47vucPvpIroyNw== 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=h7seNioEpwLDU2KYe0ytDa7GlwousAbjNFsoo+hrcNk=; b=ioaxLTwzBzAPRmxMzqzIoPJYaH+OiISNL799x8+EzE2ojW7c+DofvJNHkUROU1uvMRAyFeK83vWTWgfk3jqvNxQurcQH/io/MPUKFaXHyWCErLXbNUb1ECxaYm1OSD7XgzxDfuIOUc6T7N7QGdQuzJwFtMwHnYlwVij83HcD6e5A3vL1EFbT0yatSDNu1y/GePlBUsWhuncZK4PZi9LDYcLZst6zOyBoZvNcIZX+o71urgmd+4Vpf5ohdpHW+JJuC1y9trJpvWgFcobjrHfaIm8JAlbMFaSIKoHDwcdlbWGuglVujvgddmJ5vGiC82oNghLFQkJhWBckghcfwehthw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arm.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=h7seNioEpwLDU2KYe0ytDa7GlwousAbjNFsoo+hrcNk=; b=nUK0QUD0AXkhj10Cm63vLPQv3dTzv62LjiNqpAb1vt8hqp+KIaR29a3YHSfoMEoq9NhmflOLYNTMtR43HsV86BS3yiUMoxTVfNAcrr+R2s7vSPMsREYrt5T60S69B/wkJAhh6a6Ub/zKzng/xQPALeKLzyJEuRZ0G4po9O1Mxes= Authentication-Results-Original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; Received: from VI1PR08MB3919.eurprd08.prod.outlook.com (2603:10a6:803:c4::31) by DU0PR08MB7542.eurprd08.prod.outlook.com (2603:10a6:10:321::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.39; Thu, 13 Jun 2024 09:08:58 +0000 Received: from VI1PR08MB3919.eurprd08.prod.outlook.com ([fe80::14e2:874a:b20b:78e5]) by VI1PR08MB3919.eurprd08.prod.outlook.com ([fe80::14e2:874a:b20b:78e5%5]) with mapi id 15.20.7633.036; Thu, 13 Jun 2024 09:08:57 +0000 Message-ID: <27e9c8fb-8c91-489f-b2d2-c971647379ca@arm.com> Date: Thu, 13 Jun 2024 10:08:35 +0100 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] [gdb/tdep] Fix gdb.base/watchpoint-running on {arm, ppc64le}-linux Content-Language: en-US To: Tom de Vries , gdb-patches@sourceware.org, Pedro Alves References: <20240607063525.9887-1-tdevries@suse.de> <702876d8-e2e4-4962-83fe-2cce2195b4a0@arm.com> <93d12a77-ad21-4e67-ba82-3205ba923c01@suse.de> <9939e750-5ab9-4703-be6b-ff544d4d09d1@suse.de> From: Luis Machado In-Reply-To: <9939e750-5ab9-4703-be6b-ff544d4d09d1@suse.de> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-ClientProxiedBy: LO4P123CA0067.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:153::18) To VI1PR08MB3919.eurprd08.prod.outlook.com (2603:10a6:803:c4::31) MIME-Version: 1.0 X-MS-TrafficTypeDiagnostic: VI1PR08MB3919:EE_|DU0PR08MB7542:EE_|DB1PEPF000509FC:EE_|AM9PR08MB6129:EE_ X-MS-Office365-Filtering-Correlation-Id: 60064653-b507-43b2-d033-08dc8b887a77 x-checkrecipientrouted: true NoDisclaimer: true X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0;ARA:13230034|366010|376008|1800799018; X-Microsoft-Antispam-Message-Info-Original: =?utf-8?B?NVpxSUVSdFYwUUdqSnJBUFVPQzU0SXVBU09jcDMvekVabWRCRGhmbjlXZENN?= =?utf-8?B?VzliZDhVVEdiVHNNNmlXQU43YTVTbWFGNGE4MWF3SDNKaFVMWnJiM1U4SkZ0?= =?utf-8?B?NzNWK1NmaFVNTmJBUUZUajU3Y3Rva3lWNXFJQk4vRDZlRmV2N3V2d0pGTmZG?= =?utf-8?B?a0JXT0xLUjEybG11WDV0dFZWRHhyS04xSkxYeUgwRXdBd3FxaFFNU29nZXpo?= =?utf-8?B?UzV5OU9CcWthZ01tVW8xUWRQWDlUMjBuM0owS2dTODNreHNlUTJNc2VVVU1V?= =?utf-8?B?WFgzVzRHWU5BdE42TGltTDk3U3ZOZDF1UmRNTkRaT1pPK1NkQ1ZFeHp6Vldo?= =?utf-8?B?VDBYRk5XLzJXRmZ5MEt6UWxTYVQ2TEg1TnpheWNUU1hOazRQSkg1TTFwVHZt?= =?utf-8?B?NFI2Q1RtUk1Ga0tVRUlSR0hmOGpjN2R4Sk5XaUpkZlg4TS9ycm0xNnVaeWEx?= =?utf-8?B?eUNZZ1NJYm9yMlVaa085THBqQzFRL1NsUmIvb08vZTV6dWZjK2RRd2ZBWkFQ?= =?utf-8?B?VFZaRjUrWlA1SU95VEFEUHBYNlFHc1pnWkc3S3VOMUFjaXdBRzZuazhEM0tB?= =?utf-8?B?ZTN6Zm9IMWdsNzE2aTZLaHN0U1NObDRjZEFTZnNFQWVGRG55MEtURXlDR281?= =?utf-8?B?YVVTQTNjYW1VNnhoUWZvYjlTbnpmdm12SmtaRFVzUVE3ZVlRajNITHFacVhL?= =?utf-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2NIV2tEUnZIZVNJa3Na?= =?utf-8?B?dUhkYkpwVGowS3dFMEEzTkNhcGJiYUpiWG4xd3lVVUIySjhBbVJQOUoyS1Fv?= =?utf-8?B?cHpaWE9QTCtwSFNZc2YzTGhwdVZSWVBnSlkySmUzZm5JTUxSazR5blVnPT0=?= X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VI1PR08MB3919.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230034)(366010)(376008)(1800799018); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU0PR08MB7542 Original-Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DB1PEPF000509FC.eurprd03.prod.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: ed6d0aaf-97c8-45a9-96b9-08dc8b88694e X-Microsoft-Antispam: BCL:0; ARA:13230034|34020700010|36860700007|376008|35042699016|1800799018|82310400020; X-Microsoft-Antispam-Message-Info: =?utf-8?B?MkxkMU04ZTk5UjA4dUJ5elJKS3VDWHA1bGZzNDh0Tk5VRXFiVXUvSnptc1ds?= =?utf-8?B?d2Nmd1hqdGFpdWQyQU5HU0FtZUpDazk1YjNvanRUa2o3Y1hMY3ovMnNoc2Z1?= =?utf-8?B?NjF0T1BieG5acStHUDZqb1c2dnRpZ09tOEc4UnFBYnV5ajB0M1JRK09EY3FO?= =?utf-8?B?OVA1cklCZXlmQk9PdEk0UE1zWXFNdVk0Z09lUyswcFZFcThnU25IcjNkZ2pR?= =?utf-8?B?WVV2d0Y5LzN5Y0tIUFpTbjZ0TzVhZFRwR21ETlRFZ3ZkdUVNa3VPYkRWWW5C?= =?utf-8?B?Q2EwdDVpNkNucGM2azBKWlYwZ2hrSUJIMnFKeUEwYWdOeWdPZ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RwV04rYkkvZlljT2FMOVFIYW1veGNLUEtHci80NlVG?= =?utf-8?B?OXBhZ1JLQnhWaDJ0cUxtazZVODhnYnRmTXMyZzlESFZ4NmZkc1lWS3E3WEZN?= =?utf-8?B?TXNMZncwNjNDdEFvWnNJNFg3UENLYUwwUmhBVnZTN1REWU1zNXpFT1VFRGdD?= =?utf-8?B?WUF3QllsRTNVNnBodi9Ud0JHMmpLeUdOUU40QmNCajdkdGV6bkUyNkUwNVBH?= =?utf-8?B?NFhKL0VocXR6OU1kTjNWTjZmYXQ4N3FIbmJMalcrTnF6QmhmNFRoK1AzNVUv?= =?utf-8?B?dkRUN0NZeHE0YXZESzNlZkFrZm54OXhhVk01TUcxQ0hPR1pLRnR3bElFQlBo?= =?utf-8?B?SVYxdlJOLzRoTndLYlpDY0R2NFpyT0c4M015Yi9qbmNjVDJPeVkwUjVrZEZC?= =?utf-8?B?TXNBaFpJK0o5K3I0ZktzV1phb25xUGR3eHlPclFUZE9zWUZjK0ZKdm04STM4?= =?utf-8?B?My9yaTU4YlpVZm1LckpiRTZqcHlkWW11OS9SR2FXRm9NNnNpN2JVVStMY3o1?= =?utf-8?B?RG1saDIxYitMRTV5RjNJVUVOM1FLYWNJUlhjczVOQXZNaHZaN2lMVXllODJO?= =?utf-8?Q?J0C0L7fB2D/E8NG4Cl3acAxvkMh7YNqXhIMMA=3D?= 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:(13230034)(34020700010)(36860700007)(376008)(35042699016)(1800799018)(82310400020); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Jun 2024 09:09:06.6097 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 60064653-b507-43b2-d033-08dc8b887a77 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: DB1PEPF000509FC.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR08MB6129 X-Spam-Status: No, score=-9.5 required=5.0 tests=BAYES_00, BODY_8BITS, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FORGED_SPF_HELO, GIT_PATCH_0, 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.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 On 6/13/24 10:07, Tom de Vries wrote: > On 6/7/24 14:05, Tom de Vries wrote: >> On 6/7/24 12:18, Luis Machado wrote: >>> On 6/7/24 07:35, Tom de Vries wrote: >>>> When running test-case gdb.base/watchpoint-running on ppc64le-linux, we get: >>>> ... >>>> (gdb) watch global_var^M >>>> warning: Error when detecting the debug register interface. \ >>>>    Debug registers will be unavailable.^M >>>> Watchpoint 2: global_var^M >>>> (gdb) FAIL: $exp: all-stop: hardware: watch global_var >>>> FAIL: $exp: all-stop: hardware: watchpoint hit (timeout) >>>> ... >>>> >>>> The problem is that ppc_linux_dreg_interface::detect fails to detect the >>>> hardware watchpoint interface, because the calls to ptrace return with errno >>>> set to ESRCH. >>>> >>>> This is a feature of ptrace: if a call is done while the tracee is not >>>> ptrace-stopped, it returns ESRCH. >>>> >>>> Indeed, in the test-case "watch global_var" is executed while the inferior is >>>> running, and that triggers the first call to ppc_linux_dreg_interface::detect. >>>> >>>> And because the detection failure is cached, subsequent attempts at setting >>>> hardware watchpoints will also fail, even if the tracee is ptrace-stopped. >>>> >>>> Fix this by calling target_can_use_hardware_watchpoint from >>>> linux_init_ptrace_procfs, which is called from both: >>>> - linux_nat_target::post_attach, and >>>> - linux_nat_target::post_startup_inferior. >>>> >>>> By fixing this here, we also fix the same problem for arm-linux. >>>> >>>> Tested on ppc64le-linux and arm-linux. >>>> >>>> PR tdep/31834 >>>> Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=31834 >>>> PR tdep/31705 >>>> Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=31705 >>>> --- >>>>   gdb/linux-nat.c | 12 ++++++++++++ >>>>   1 file changed, 12 insertions(+) >>>> >>>> diff --git a/gdb/linux-nat.c b/gdb/linux-nat.c >>>> index c95d420d416..d8b5a99269b 100644 >>>> --- a/gdb/linux-nat.c >>>> +++ b/gdb/linux-nat.c >>>> @@ -454,6 +454,18 @@ linux_init_ptrace_procfs (pid_t pid, int attached) >>>>     linux_ptrace_init_warnings (); >>>>     linux_proc_init_warnings (); >>>>     proc_mem_file_is_writable (); >>>> + >>>> +  /* Some targets (for instance ppc and arm) may call ptrace to answer a >>>> +     target_can_use_hardware_watchpoint query, and cache the result.  However, >>>> +     the ptrace call will fail with errno ESRCH if the tracee is not >>>> +     ptrace-stopped, making the query fail.  And if the caching mechanism does >>>> +     not disregard an ESRCH result, all subsequent queries will also fail. >>>> +     Call it now, where we known the tracee is ptrace-stopped. >>>> + >>>> +     Other targets (for instance aarch64) do the relevant ptrace call and >>>> +     caching in their implementation of post_attach and post_startup_inferior, >>>> +     in which case this call is expected to have no effect.  */ >>>> +  target_can_use_hardware_watchpoint (bp_hardware_watchpoint, 1, 0); >>>>   } >>>>   linux_nat_target::~linux_nat_target () >>>> >>>> base-commit: f9478936896ada7786e8d68622f6e6ff78b97b0d >>> >>> Looks good from arm-linux's side. Thanks! >>> >>> Reviewed-By: Luis Machado >>> Tested-By: Luis Machado >> >> Luis, thanks for the review and the testing. >> >> Pedro, since you reviewed a target-specific patch for the arm PR, any comments? > > And just to mention this, I'd like to backport this fix to the gdb-15-branch. > > Thanks, > - Tom > That's OK by me from arm's side.