From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id 2eMXIooYZ2ry0i8AWB0awg (envelope-from ) for ; Mon, 27 Jul 2026 04:36:26 -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=c9FTww4g; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=selector1 header.b=c9FTww4g; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 858EF1E099; Mon, 27 Jul 2026 04:36:26 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-5.4 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, 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 CC89E1E099 for ; Mon, 27 Jul 2026 04:36:24 -0400 (EDT) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 1CDE94BA2E14 for ; Mon, 27 Jul 2026 08:36:23 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1CDE94BA2E14 Authentication-Results: sourceware.org; dkim=pass (1024-bit key, unprotected) header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=selector1 header.b=c9FTww4g; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=selector1 header.b=c9FTww4g Received: from GVXPR05CU001.outbound.protection.outlook.com (mail-swedencentralazlp170130007.outbound.protection.outlook.com [IPv6:2a01:111:f403:c202::7]) by sourceware.org (Postfix) with ESMTPS id 1DAE34BA5439 for ; Mon, 27 Jul 2026 08:24:03 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 1DAE34BA5439 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 1DAE34BA5439 Authentication-Results: sourceware.org; arc=pass smtp.remote-ip=2a01:111:f403:c202::7 ARC-Seal: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1785140644; cv=pass; b=POIJX/Kgm3qyiLwavThoKoe62rvr/B8kWraLdvyMPPE7o0Egxnju9428j9ypq4fT25tNR4xTgnWKOqfiHbxwe57FasW29EUtRtao2Wvh5g1lXbNmjdKjwbPQe7CK/emxWGEaNJtWFo27Fa0fnAZntHLmplFBb4AGF/D7X5PhMCw= ARC-Message-Signature: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1785140644; c=relaxed/simple; bh=cq6tf5FbbWfcHVwZacK0iupOCcdpDm1SLftkUC5Nqc4=; h=DKIM-Signature:DKIM-Signature:Date:From:To:Subject:Message-ID: MIME-Version; b=eka3k7MQkh7AqawG/TZG2Eb2zP+3KlXZto9+PYVvjfJuwuocQFTBODeWpuWEpAX+MRQFyeBAfW1l9D4yJ+DYwsQhBZWHxBNSp690SEGyECBDleRG1VYnK2+ZrHXzMAawtECKLvfy9M2TkYdh1AcgeQOBWoxedKSmxYb7qCEN5DQ= ARC-Authentication-Results: i=3; sourceware.org; dkim=pass (1024-bit key, unprotected) header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=selector1 header.b=c9FTww4g; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=selector1 header.b=c9FTww4g DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1DAE34BA5439 ARC-Seal: i=2; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=pass; b=y+JTDzBkZ1iLdNY8UI47DTwvpNey/lDJ/qZB3Ay30mfmiPapc69XiVby6QRVpOpspF/PZkfup7RnXDZwbjXNuOTUe/GtxK86H/ceS8Eg/J3kr0BpD02FmgpXK4A9RH86PHbsx4dJdPM7aCaDFA3o2PkWO7HU/x77X6AwWa7YzXTrmsjr2C3uD0iiERISDDZPim1zlAN6T7bEDsf/EfS4z17VMtjTDqROKTbESFLacFJYZkv9EhQPnMYkVWazhlMyhZuHgjOntpR6I5sghb2eB0wripQNKopurrKtH+Zokri6l1HVqy6XiEli/rc392ah2KO0PyS9Q3qDcsnV3pD1BA== ARC-Message-Signature: i=2; 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=XN8rThmSvRTDZLogF4Y7msBIXIZDkH/kmDBbiIIwTjs=; b=HYkwj3/tiY68RRW7ycEPd1G4FLI0NU6VwKCKUylGhjJAoLlq5zs3mUUXRR+Mh9a5Xk2M6jccteBpJC36xGsEjikQ2Trsu/Y/20qzT1swLLWlQw9KS60lp9HcDnuwW2YGFlAUVTrG0muhll4OdXkCzWGGrsd7unliNuhu7NaANKG5pys6NjcWv2effkXeARKOHi8ytlTwX050seZUIZxPlUsxyjuAFouNQ7l7MsGSLNgkyzJTQ0Jwp9hnOSiMYs7PeN0uTD3U+YTzDKfApMRBQDagHOGoPlaz4oGxOkWkUP2PE0IDJEtCdc/DLQtrjwLDrFBOrd2er6U7bnoPGElJGw== ARC-Authentication-Results: i=2; mx.microsoft.com 1; spf=pass (sender ip is 4.158.2.129) smtp.rcpttodomain=linaro.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] 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=XN8rThmSvRTDZLogF4Y7msBIXIZDkH/kmDBbiIIwTjs=; b=c9FTww4gSCA1k0TEp/7XX2IPYHoohyTFXb9UOjLmYQH+Pv6mIJkuEIbX7lk7dzqUyyL7chirvyZ9O/8uxbYQ7Ec/2wYxRH8naurfdMaZLhA1fWLb6OaWoR8S7jT8Uu/3wJmNXmevYqX/864vdhMgNsKuyrpSVCTMkrQhzDGmDWg= Received: from AS4P250CA0028.EURP250.PROD.OUTLOOK.COM (2603:10a6:20b:5e3::16) by DB9PR08MB11403.eurprd08.prod.outlook.com (2603:10a6:10:60d::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.245.13; Mon, 27 Jul 2026 08:23:51 +0000 Received: from AM3PEPF0000A791.eurprd04.prod.outlook.com (2603:10a6:20b:5e3:cafe::a9) by AS4P250CA0028.outlook.office365.com (2603:10a6:20b:5e3::16) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.245.13 via Frontend Transport; Mon, 27 Jul 2026 08:23:50 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 4.158.2.129) 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 4.158.2.129 as permitted sender) receiver=protection.outlook.com; client-ip=4.158.2.129; helo=outbound-uk1.az.dlp.m.darktrace.com; pr=C Received: from outbound-uk1.az.dlp.m.darktrace.com (4.158.2.129) by AM3PEPF0000A791.mail.protection.outlook.com (10.167.16.120) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.270.5 via Frontend Transport; Mon, 27 Jul 2026 08:23:50 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=PYWfOf82OLVhnONjDUzmQVsKtGjTPA9taZkBSN19kYvX7ajZqHbFaqhlrSWzD1fGhh8j/Rbrjl/0ST01bCwN83PwY+2ms8MrQOT3BQ6Is3hjHtSiwn4CuFdeisvqMMPZ2J8n3Q9OqBhWnV90K7hK69EBi0rx+9lZ76NBwGAXH/Vuv9G1XKbSa8cBoPuLP3FDTm2d3dIAD93n38ggbQvs5MMG7j9C97Zcn7YIP6SeCAlUIgnH96OGtw4yHw57fMwhiZ0d83hBZKMDcAzoX3ToHCEjNLhbNm8ozoKE36UhJRj2++7NWV1IfUnwvFhEZV8IqRSGSK1NOE6RgrT2tF1UGg== 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=XN8rThmSvRTDZLogF4Y7msBIXIZDkH/kmDBbiIIwTjs=; b=XwjjVGTSlQU4gnmLQWaIgE1cY6kGy353c2RgASnslL2Ap30jZzBIivs9IBf50nJRxT539NvWtyIxOBkSniY/gETG7AdZPaVx+xRjni3Us7oo6G77LIHL8r6b5EcQQKZxeiOam632F8fu/fGRKFQTB2Ocv9oudssKCUeJNR72zL8Wjj9NVk2qdF72Eq8HtjcZDvlvRPnyulhCiOmNkJXhLpER59y0LDmd26b9SOoJHs9/NRgGWAOL8H4CzpzcSZtUfTCgwXUlPdYqTshh91h4W0kwKvGlrDcHu4Ir8vp6pP8/x+diShNMATJeDtHPdCWR4gb97dccGxUcxZJ2WesX4Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 172.205.89.229) smtp.rcpttodomain=linaro.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 (0) 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=XN8rThmSvRTDZLogF4Y7msBIXIZDkH/kmDBbiIIwTjs=; b=c9FTww4gSCA1k0TEp/7XX2IPYHoohyTFXb9UOjLmYQH+Pv6mIJkuEIbX7lk7dzqUyyL7chirvyZ9O/8uxbYQ7Ec/2wYxRH8naurfdMaZLhA1fWLb6OaWoR8S7jT8Uu/3wJmNXmevYqX/864vdhMgNsKuyrpSVCTMkrQhzDGmDWg= Received: from AM0PR10CA0044.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:20b:150::24) by PA4PR08MB6271.eurprd08.prod.outlook.com (2603:10a6:102:eb::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.245.13; Mon, 27 Jul 2026 08:22:48 +0000 Received: from AMS1EPF0000008E.eurprd05.prod.outlook.com (2603:10a6:20b:150:cafe::5c) by AM0PR10CA0044.outlook.office365.com (2603:10a6:20b:150::24) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.245.13 via Frontend Transport; Mon, 27 Jul 2026 08:22:48 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 172.205.89.229) 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 172.205.89.229 as permitted sender) receiver=protection.outlook.com; client-ip=172.205.89.229; helo=nebula.arm.com; pr=C Received: from nebula.arm.com (172.205.89.229) by AMS1EPF0000008E.mail.protection.outlook.com (10.167.242.85) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.270.5 via Frontend Transport; Mon, 27 Jul 2026 08:22:48 +0000 Received: from AZ-NEU-EXJ02.Arm.com (10.240.25.139) by AZ-NEU-EX03.Arm.com (10.240.25.137) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.29; Mon, 27 Jul 2026 08:22:44 +0000 Received: from AZ-NEU-EX03.Arm.com (10.240.25.137) by AZ-NEU-EXJ02.Arm.com (10.240.25.139) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.29; Mon, 27 Jul 2026 08:22:43 +0000 Received: from arm.com (10.57.42.118) by mail.arm.com (10.240.25.137) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.29 via Frontend Transport; Mon, 27 Jul 2026 08:22:43 +0000 Date: Mon, 27 Jul 2026 09:22:42 +0100 From: Yury Khrustalev To: Thiago Jung Bauermann CC: Matthieu Longo , , Luis Machado , Luis Machado , Andrew Burgess , "Pedro Alves" , Tom Tromey , Srinath Parvathaneni Subject: Re: [PATCH v1 09/10] gdb/linux-tdep: parse ProtectionKey in /proc/PID/smaps Message-ID: References: <20260707154900.94542-1-matthieu.longo@arm.com> <20260707154900.94542-10-matthieu.longo@arm.com> <87qzlczms3.fsf@linaro.org> <042de0a8-d0e4-4ad3-880a-684ab6a22077@arm.com> <87wluldrfl.fsf@linaro.org> <87zezfk1we.fsf@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <87zezfk1we.fsf@linaro.org> X-EOPAttributedMessage: 1 X-MS-TrafficTypeDiagnostic: AMS1EPF0000008E:EE_|PA4PR08MB6271:EE_|AM3PEPF0000A791:EE_|DB9PR08MB11403:EE_ X-MS-Office365-Filtering-Correlation-Id: 9d31b173-d150-4930-221c-08deebb86338 x-checkrecipientrouted: true NoDisclaimer: true X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; ARA:13230040|36860700016|1800799024|23010399003|376014|82310400026|11063799006|10067099003|56012099006|4143699003|18002099003|22082099003; X-Microsoft-Antispam-Message-Info-Original: doB3SyzBubMoTyFvYQCQ5tNrJRDmRqwpvAgnLmocY6jX7N4FMLaPXGXUOe8UpnAAFcZveeEW16VAOcjPZcDK64PQZJtvFSTDo59jgwHNMMCjX8/jQwXOAvqYhovS+fvuKWQrj3qk1TxBVoS7T/OIpuYsAnO06mSatMhIo+0bKX/ZH+OqHOXUsH/GC7qW8RqVYl10ZQSur6NqkRv6Lw4n1Z13REwCuVbugTQe6MOQaCcDp8dHUQ/kjSYSyIxwsBsIDb3ZmpWFJIfoEhocE3PpLWeno14L7+c4PE3E71GypPt1BEcUQ/MtboHBPhXYDIIVKfRoQ7rCuIHb4b4T9bIGpm7n5UjoKyMyy8Rot3x4qjxZavOytGnDEugW65bC5NUYbYWCAENzCrGV1woQfrZEXm15n/kxTp/opWmUheRXP2nusdRIl9Wulo7bbXTiMFhA7Z6vvUB2EpNxrj53SDAVV9yoTZnjx2U9fG7szg6ZffZlnmws13lP8x+Zqt9tY2NUmNxFMl+lcumkNklHQHvIe1hBzV2JyXwINwN/1MYcBl2myhPYITMmHhgHRZvLUpqDWDyftwU8SAmoMpSplf7AGEmb9Ny+R7Y+ZA8WAVRXbJd2gHyEGFXx1ryrFGf+xaBhatLicpDqaxMkKp1uZMdjzDv/5UUpg+Dp7AnT2lOjzgN23lK9khEfU9UF9C5sfeOpAl7XRgSezO9AxAabO7u5qQ== X-Forefront-Antispam-Report-Untrusted: CIP:172.205.89.229; CTRY:IE; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:nebula.arm.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230040)(36860700016)(1800799024)(23010399003)(376014)(82310400026)(11063799006)(10067099003)(56012099006)(4143699003)(18002099003)(22082099003); DIR:OUT; SFP:1101; X-Exchange-RoutingPolicyChecked: I8ME51jErkH96sbVhBqychVwRozohgWtGAWUyGB1ldSAUcxU0PwL6xpZAjx6+DSBExyjp6C77RiGndmlfAAdPRxTU1RpDhLrTkuUQXIW4rB/7Pg0/3r/W3ks/67hvbbugFhyxeqDZ3t0tccjBjK2zcCGINFbrL2xUgIf2KyrILgcckDA/L8E58aWqM/D5ioWNVbW4Q36sKKNGiVNsLtT54mtIa0agUb38oVDDEhP4RyJVBDCRa/DmrsVGbhABB3sZhMlhjfQIYZh1A6C+AnqFKleCHUtqtFls51eJ4yGXGjqfpfVoAgpLNNUggjiECyhF4cxqC/l71dw3EDXTyn3xg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR08MB6271 X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM3PEPF0000A791.eurprd04.prod.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 52dccef3-54a8-4dd0-f134-08deebb83e19 X-Microsoft-Antispam: BCL:0; ARA:13230040|14060799003|23010399003|35042699022|376014|1800799024|82310400026|36860700016|56012099006|4143699003|11063799006|10067099003|22082099003|18002099003; X-Microsoft-Antispam-Message-Info: jPw8vh5BBXAYueJVR8ytDyXYrLXqpQR877GSeZAdhbmtv+QdAdvxlYyA2jk+WdntioJ2XZ16k2JSKHAKHdBaiqQ5uEC5BFXA9oCp5mnanHwc/HQninoTxe8lRcTkdDW6DjzFJlkT/5XX0xHKBu1cHFtoHS4ydeEf7vjxD0r1uIu7pDkSaUZnn8qMNsSPxu3VKXKP10GNaDajQdJr1tliPZd0B6kwPLBDjTHnuX6/Mi76DO2Vwtn0p1cIKrPV7INgRaDcwljc1y57i4Oig+JHvhENxR8/vXs+DZhScHX2FHWjpJO8o1ROlVd0MjxTt9YOIlV/9w+upKwUYVz7FrvWVTE1nt3rJlohaebVb0geI2bPK9msssfDFE6xKS5YBu0JM/iMTtVmRkiZr4Tv72dTVsAZO5lWrZy2nMhomupYZb7Vbkq72N2O/D0vEnM98o3roJ4C1gqry+IOatuyxp/x/VYneRFhrp5JBuPU0KEV7nBVfcnYQtSjdZ/dIqSswcz9ssqd9/VJ0G207Bd7bo3xDvBrUIqpnora7sYbQnAEUAisPo2HU13YL24XpfLT4jdZ9PyfVGDHAE5NCKhb5bQIgO4FHUVxosig5KNDThReJy+/xjMw+jXFj3WYLOIdnYy4+c9DKAklQoZ8voEVOu7p2VlJ0M0kqOIG+ah6AN9Xuv+YoXSJIDWChFyOn5OvOsYG8Y72r0s6EhHp4U63kv9Ehg== X-Forefront-Antispam-Report: CIP:4.158.2.129; CTRY:GB; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:outbound-uk1.az.dlp.m.darktrace.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230040)(14060799003)(23010399003)(35042699022)(376014)(1800799024)(82310400026)(36860700016)(56012099006)(4143699003)(11063799006)(10067099003)(22082099003)(18002099003); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: owekn6XZwEC8nTXunt2l8aGMDiVgNsy43ntG2PR8TVDYo+EXD2nHy8oeXNto29L++o118ItocjlbK1c9YxT0SBevA8GhHOFvbpHDgnaS1IU+UMoNRZHW/MQWDl7AM7z+BGgNpadTEtAqrdfw9T/obBE3N8zrP2RVqdd50QiTAr8X3FTmtNeIadpAdqRdUlermXbkYCux22Ad8kkC29pet1iNfWz5cRpMyk8Sv6xmwNLCGx84AoiccTQvG0ZDdT6IFVQkDjmb0Ovx+/CicyKnJmnd9qmItXi+QZN7D369WY9TY395Q5crUBrkE9T6uKZX9WKvS5aDYY9uuXxnYsskCE2zdqbzz1Q5JR8w09I8bYLD3/bomS7vu64vu6hIi0kgD8FMXyQrsHRLXIbHxjUPbiQHgB1u9afQE2r8nlVU3tZc3wUdTekcPo4NnHfomch9 X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Jul 2026 08:23:50.3295 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 9d31b173-d150-4930-221c-08deebb86338 X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d; Ip=[4.158.2.129]; Helo=[outbound-uk1.az.dlp.m.darktrace.com] X-MS-Exchange-CrossTenant-AuthSource: AM3PEPF0000A791.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR08MB11403 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 Sat, Jul 25, 2026 at 06:40:33AM +0000, Thiago Jung Bauermann wrote: > Yury Khrustalev writes: > > ... > > >> > The look-up of those overlay permissions is platform-specific). > >> > >> Considering that there are differences in how protection keys are > >> implemented in different architectures (e.g., IIUC only Arm has overlay > >> permissions), the whole "effective: r-- overlay: r--" part of the line > >> should be printed by a gdbarch hook. > >> > >> > If no protection key support exists on the target, the PKey column would not be printed. > >> > Same for the threads' permissions (effective and overlay). > >> > >> Also even if protection key support is available, if there's no > >> protection key set for any mapping then the column shouldn't be printed > >> either. Or is there always a key associated with every mapping? > > > > I think the column should be just empty or have some placeholder like a > > hyphen when mapping is not associated with a pkey. > > I don't see much use for an empty column (or one containing only > placeholder values), but I also don't feel strongly about it. The point of the empty column (that is only shown when pkeys are supported) is that it would show that none of your mappings use any pkeys. I think this is useful piece of information. E.g. if I expect to see a key but due to a bug it's not used, I don't want to not see this column at all because I would think that my version of GDB does not support it or something.