From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id AIi9NxmGJGiajyIAWB0awg (envelope-from ) for ; Wed, 14 May 2025 08:01:29 -0400 Authentication-Results: simark.ca; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=HmHTRZmT; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id DC0301E10E; Wed, 14 May 2025 08:01:29 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-10.1 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,RCVD_IN_VALIDITY_CERTIFIED, RCVD_IN_VALIDITY_RPBL,RCVD_IN_VALIDITY_SAFE autolearn=ham autolearn_force=no version=4.0.1 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 4C3141E092 for ; Wed, 14 May 2025 08:01:29 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id EF1A6384F00A for ; Wed, 14 May 2025 12:01:28 +0000 (GMT) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.15]) by sourceware.org (Postfix) with ESMTPS id AF638386103E for ; Wed, 14 May 2025 12:01:11 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org AF638386103E Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=intel.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org AF638386103E Authentication-Results: server2.sourceware.org; arc=fail smtp.remote-ip=192.198.163.15 ARC-Seal: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1747224072; cv=fail; b=sB9hcI+oAStqxuOkRFFZbQ2n5T1dIV0FC41ZoXGYkuI4ciQsUIzbxbMCB3ogpW6VF2ONStKdf/ow5RwbZsPNBmxojijPmngMFP/sUjKydsAYWAbcKUGAovZIlXGNlbBgmItw+TG28C9V7I4eGdIHt5DmeMRT63PpDRxsoEhbItI= ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1747224072; c=relaxed/simple; bh=M+z3zp5m78cu0hKgET2jCdchbm1+AKqgekIzZbKWy1g=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=CQMgzMqj5ujP/nmFCRxDzwuDZidgqQyDouwDjElAyPILK71USABTEf0Eon7DKI94UUEO7Fg4IjBosN94V6sBQfaJOYmKP0/IxNHj8yW+ZFmFewuLukJbzuY0/xze//rSUEX9NjhVmDlH+wChxGA/JvIryeozdwJ90iP+eOYufmg= ARC-Authentication-Results: i=2; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AF638386103E Authentication-Results: sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=HmHTRZmT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1747224072; x=1778760072; h=from:to:subject:date:message-id:references:in-reply-to: mime-version:content-transfer-encoding; bh=M+z3zp5m78cu0hKgET2jCdchbm1+AKqgekIzZbKWy1g=; b=HmHTRZmT3JUsRIIuWD7B+gHMjjfQqu0e+c8lX3eE1woNpNZsG21G4Zhm 4fqCLQ+DvMNuWrb+3BR5k4cJfVE3g/DKOZHF50JZU3MwvPfvq+7wPR8oV i4n/lUjcQyd6PqkWzaX4wC2Aj1GcadaX5b0iNTr/6vsY0xMsR0WE2OyfV nSqDdAcU3ucQ9WKBivYF17RHrWpm+EH675NJioFRgEDIm2CG4MpvSfz8F 3ZjLEF+IKjJ5dyZaqEQd5zAsj9VPYK1ju85aBUSwvMDpzX8VmJz2J71YC VRUQPQHvDMAz1nugO1sdjNqJ0ZWbocgI+b51wlmt1dwXiEOftoN+zSjmz A==; X-CSE-ConnectionGUID: J1JUZR0jQ3OcfC762CJHNw== X-CSE-MsgGUID: 25PtemJLQlijMBCQxf7fiQ== X-IronPort-AV: E=McAfee;i="6700,10204,11433"; a="49260600" X-IronPort-AV: E=Sophos;i="6.15,288,1739865600"; d="scan'208";a="49260600" Received: from fmviesa004.fm.intel.com ([10.60.135.144]) by fmvoesa109.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 May 2025 05:01:09 -0700 X-CSE-ConnectionGUID: H1oWCecmTyCmAmN6+u/JKg== X-CSE-MsgGUID: 0YQcUfszSuCJRrovQhJlmg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.15,288,1739865600"; d="scan'208";a="143222421" Received: from orsmsx903.amr.corp.intel.com ([10.22.229.25]) by fmviesa004.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 May 2025 05:01:08 -0700 Received: from ORSMSX901.amr.corp.intel.com (10.22.229.23) by ORSMSX903.amr.corp.intel.com (10.22.229.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.14; Wed, 14 May 2025 05:01:07 -0700 Received: from ORSEDG601.ED.cps.intel.com (10.7.248.6) by ORSMSX901.amr.corp.intel.com (10.22.229.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.14 via Frontend Transport; Wed, 14 May 2025 05:01:07 -0700 Received: from NAM02-DM3-obe.outbound.protection.outlook.com (104.47.56.41) by edgegateway.intel.com (134.134.137.102) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.44; Wed, 14 May 2025 05:01:07 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=ZJ/JCC7P881Oi8CA2mQXYLGlAkwF921GWh60qiGk5xkJCmpoATZA9dqWw4hZjX2hXdH5IZNl7oSohT3gBQFlGooZTlTkGGyxQk5SrYu8ntuKkOGjAn9PSzz1gva0SMWCmHyHp0B+dWUIGL//0MFjNTbiY8IDyhtv9jkd6CTDoFcpJqx5t2Y+tpt95WaIXecRRkt+EbxLhFl29cgNbmUr8C5DYMqv19Iq7Pqfb9xrMiEDB6HHKzGG7ZA0dahNKUsq97OSVoIVDYdBYAXVCDxzX5I7jF7Z5iNpPvuewVDkFnN79Gp3l1Yz4xvF2mylbJg63lvelBv2LeliShvhtQZuQA== 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=d+nLSlYPPbbmacnZufx/GyhnKqqSTpi9M2OGtzhPdGc=; b=GsCIuXpla5QlU+nXBYavNqavVO0gv9vuV5OVrKYazBNeQm3zRyHlhZTmL7sFrMU46PO3Z9fi3v9bUcrA5irq4WFq1SLJVGwoPevdTuY/rgSXRTX2YRbZvNj5V/ge9dKYH45vDhw4E9CSxmzdnH9wle1CFqTTL9usCiPtdkE7s7XvwqsK+noCeibPnjGD2/IrV3kgBg4hb3lKqAWfUOX6th9HwVoPvkGv5sAa7xOJhoXxeKylk7cb3eGyM2Z1khGenQYcYWSnA9b6lskvh7Gmw3jh6EzfdWaasYV7aRBN7/+hTJnShSo3N2QyVLa9aMDe/qdJdiTKxq2dDFA5eBvUdg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Received: from SN7PR11MB7091.namprd11.prod.outlook.com (2603:10b6:806:29a::18) by MN6PR11MB8147.namprd11.prod.outlook.com (2603:10b6:208:46f::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8722.29; Wed, 14 May 2025 12:01:04 +0000 Received: from SN7PR11MB7091.namprd11.prod.outlook.com ([fe80::949:8fc3:9cef:8c06]) by SN7PR11MB7091.namprd11.prod.outlook.com ([fe80::949:8fc3:9cef:8c06%6]) with mapi id 15.20.8722.021; Wed, 14 May 2025 12:01:04 +0000 From: "Gerlicher, Klaus" To: "gdb-patches@sourceware.org" , "aburgess@redhat.com" Subject: [PING V2][PATCH v3 0/1] gdb: avoid conversion of SIGSEGV to SIGTRAP on user breakpoints Thread-Topic: [PING V2][PATCH v3 0/1] gdb: avoid conversion of SIGSEGV to SIGTRAP on user breakpoints Thread-Index: AQHbQLvSDpYYPqKpZEupM3O4YCijOLO7M/oAgBfaSVA= Date: Wed, 14 May 2025 12:01:04 +0000 Message-ID: References: <20241127110132.125667-1-klaus.gerlicher@intel.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: SN7PR11MB7091:EE_|MN6PR11MB8147:EE_ x-ms-office365-filtering-correlation-id: f97e26fb-9af0-428d-61be-08dd92df00f7 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; ARA:13230040|366016|376014|1800799024|7053199007|38070700018; x-microsoft-antispam-message-info: =?us-ascii?Q?9Cn7WrrbnkheHR1FrjAh/Ku8ZkijPfIvANbj7y3Tdv30/xsw4XhAmrokrKpK?= =?us-ascii?Q?KLPT4mgiF2eG8W7fn2IECq2UIq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6Zxb?= =?us-ascii?Q?ruirvrQ74/L+eBcho60VcViw7WGV/JLxVuiszYpqWvY8k5Yoa5mdIiIcEitN?= =?us-ascii?Q?TuAcW/sUVEhNGFPSdvZ8+3jKEU3VRYlkvJS7MvGlizdZSe7Deyg8y15loCj5?= =?us-ascii?Q?PKYLn+0UCqIbiD5lzlYC6CzG243WaEPb9ZS5+rhPvGqonC4JpsRj6nCoZndF?= =?us-ascii?Q?37HQTINnuva9Z8RccbZ8ZjTIJdGlWn3lktuFr7tjDBbQO8idZLG2q6JFO0nR?= =?us-ascii?Q?X8AFE6ua0uak4otuSXDh30rvMH85rxN8kJ5SkjaCIYYPnTHrJifUVT+uK3P4?= =?us-ascii?Q?FszT8WpKBZouXPcVelGs/M0Sgj2e2sTAXfu/fj8WFR9pfxxiZjBX5zskTgS0?= =?us-ascii?Q?Q2lrH08Sn26MKJR496EGEjFU4QJt4P14+OtX6/2f498QKUN9gb0pBr4gbOUD?= =?us-ascii?Q?3bxRqNieX/xqaJ0SkpHtZPoW1rISwKHylxQljIsfOG+ddxX59RotA6ZaPkLX?= =?us-ascii?Q?gxYmcFRIyeI=3D?= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SN7PR11MB7091.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(366016)(376014)(1800799024)(7053199007)(38070700018); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?xuSWeVtSru/o4wtMutTAjXDHxSIE8isEeLz+742trjUtpA7GyEMHXakWc3kg?= =?us-ascii?Q?A9MflluIKWMa/JGmEO1vzs+KYe6JnHWRkQU9UOkMO8ip7dibnckxhWP+S0x+?= =?us-ascii?Q?7MgpZeC9KFxCCm/X9x0B4/czJUN3afSpTg/yTIIinMSWzIGWmT1oc4ttX2Zn?= =?us-ascii?Q?5/YcSfKQLR7y8frBKh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= =?us-ascii?Q?gJhfMZn805YGIZObI1ymatmuQSMXQ8WCwFQfjlVAf8KqEfpSytLwBdhdyxO5?= =?us-ascii?Q?vsHM4gLH8Ilp4mJTcdneqlh9VXi1MEpX1zVC0GQVobMBaeNxz9RE9sQzAONm?= =?us-ascii?Q?V0axXr+g9fFqn2PyGyDwE7YBWwQPKHemFt4AjvK3kiiVnJep3SpcmWYagtxD?= =?us-ascii?Q?+Tl3yMmW66f0xK6GpTNRBi2cB9ToWK5iSqsrWVdjATxobcE3puIHUnfSaNjs?= =?us-ascii?Q?GuvxOVSX8uRnY0oY3u9eshqceTo5t5dVsu72UdEtuXmvOwOvjJ4FGEu33Qbh?= =?us-ascii?Q?3jmGwqn6tFMo0nn3SujsgJQB/AEfyGtSx8MN15iZuGhZhW/oeJ9WJHDaI5Jd?= =?us-ascii?Q?YRd0PIdfNcWYobvZ6LxtrlBTLrZXy/uZ2YbPajBf3OYyQztsrbU64zE7GX5e?= =?us-ascii?Q?jtrNyfnL2odncchR5YcxjsILgfe2OlmQ2Pogcq4DjCc/HgDaZsmq00AmRnZW?= =?us-ascii?Q?uiDYy8oqt/4ZI0SZaL8LBrZokpb+Gb96Iiaq5eDQXlUd0Uifw81SV00wjgpA?= =?us-ascii?Q?Xw=3D=3D?= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SN7PR11MB7091.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: f97e26fb-9af0-428d-61be-08dd92df00f7 X-MS-Exchange-CrossTenant-originalarrivaltime: 14 May 2025 12:01:04.7419 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: YfbgJRxoEeQx2eO/KJHD/xPNicHEAtIKSUbK8COmhywEwdFL/Bk+TagL8NJQgIrXYy9VQCMF0CMIvPOqun6XHh/PsOkQJ0hqsq/t6yl1l7o= X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN6PR11MB8147 X-OriginatorOrg: intel.com Content-Transfer-Encoding: quoted-printable 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 Hi, Kindly pinging. Thanks Klaus > -----Original Message----- > From: Gerlicher, Klaus > Sent: Tuesday, April 29, 2025 9:47 AM > To: gdb-patches@sourceware.org; aburgess@redhat.com > Subject: RE: [PATCH v3 0/1] gdb: avoid conversion of SIGSEGV to SIGTRAP on > user breakpoints > = > Hi, > = > Kindly pinging. > = > I think I've lost a bit of momentum here since last November but I had > implemented the gdbarch approach here. > = > Thanks > Klaus > = > = > > -----Original Message----- > > From: Klaus Gerlicher > > Sent: Wednesday, November 27, 2024 12:02 PM > > To: gdb-patches@sourceware.org; aburgess@redhat.com > > Subject: [PATCH v3 0/1] gdb: avoid conversion of SIGSEGV to SIGTRAP on > user > > breakpoints > > > > Hi Andrew, > > > > thanks for the feedback. > > > > You replied: > > > > > But, I wonder if there's a different approach that could be used? > > > > > > I assume that your out of tree architecture with these imprecise page > > > faults has a new gdbarch to represent it. > > > > > > You are limiting the SIGSEGV -> SIGTRAP conversion because, I assume, > > > you've hit cases where a SIGSEGV occurs and then your target has run = on > > > and reported the stop at the address of a user breakpoint. But all > > > you're really doing is reducing the scope for errors. It could be the > > > case that the SIGSEGV is reported at the site of an internal breakpoi= nt, > > > and then you'll still have issues. > > > > > > So what if, instead, you added a new gdbarch method, something like: > > > > > > bool gdbarch_has_imprecise_page_faults (struct gdbarch *gdbarch); > > > > > > The default for this, and for all currently in-tree targets, would be= to > > > return true. For your target this will return false. > > > > > > Then in this code we would do: > > > > > > if (ecs->ws.kind () =3D=3D TARGET_WAITKIND_STOPPED > > > && (ecs->ws.sig () =3D=3D GDB_SIGNAL_ILL > > > || (ecs->ws.sig () =3D=3D GDB_SIGNAL_SEGV > > > !gdbarch_has_imprecise_page_faults (gdbarch)) > > > || ecs->ws.sig () =3D=3D GDB_SIGNAL_EMT)) > > > > > > How does this approach sound? > > > > I think for now this would be a viable solution and I implemented it in= the V3 > > patch. > > > > However, we had a little discussion internally and we were wondering if= this > > now > > feels more like a workaround in a workaround. > > > > It seems to me that the conversion of any of these signals should reall= y be > > only done for a specific target. Even though the SIG_ILL and SIG_EMT > > conversions obviously have no side effects for most targets, I would t= hink > > these should be avoided. > > > > Do you think there's a way to limit these more specifically or are we u= nsure > > which targets actually need these? Maybe some of the users are already > > obsolete? > > > > I would assume it would be difficult to limit to a specific target when= we used > > the remote target since we would then have to update GDB server to also > > support > > this. > > > > I'm of course fine if we fix it with the architecture method but maybe = others > > would disagree? > > > > Thanks > > Klaus > > > > Gerlicher, Klaus (1): > > gdb: avoid conversion of SIGSEGV to SIGTRAP on user breakpoints > > > > gdb/gdbarch-gen.c | 22 ++++++++++++++++++++++ > > gdb/gdbarch-gen.h | 7 +++++++ > > gdb/gdbarch_components.py | 12 ++++++++++++ > > gdb/infrun.c | 4 +++- > > 4 files changed, 44 insertions(+), 1 deletion(-) > > > > -- > > 2.34.1 > > > > Intel Deutschland GmbH > > Registered Address: Am Campeon 10, 85579 Neubiberg, Germany > > Tel: +49 89 99 8853-0, www.intel.de > > Managing Directors: Sean Fennelly, Jeffrey Schneiderman, Tiffany Doon S= ilva > > Chairperson of the Supervisory Board: Nicole Lau > > Registered Office: Munich > > Commercial Register: Amtsgericht Muenchen HRB 186928 > > Intel Deutschland GmbH Registered Address: Am Campeon 10, 85579 Neubiberg, Germany Tel: +49 89 99 8853-0, www.intel.de Managing Directors: Sean Fennelly, Jeffrey Schneiderman, Tiffany Doon Silva Chairperson of the Supervisory Board: Nicole Lau Registered Office: Munich Commercial Register: Amtsgericht Muenchen HRB 186928