From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id L4saMaIP+2pKfBMAWB0awg (envelope-from ) for ; Mon, 16 Nov 2026 09:13:54 -0500 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=Df2StTWt; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=selector1 header.b=Df2StTWt; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id B66601E023; Mon, 16 Nov 2026 09:13:54 -0500 (EST) 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 03A431E023 for ; Mon, 16 Nov 2026 09:13:53 -0500 (EST) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id F26FA4BA799C for ; Mon, 16 Nov 2026 14:13:46 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org F26FA4BA799C 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=Df2StTWt; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=selector1 header.b=Df2StTWt Received: from AM0PR02CU008.outbound.protection.outlook.com (mail-westeuropeazon11013069.outbound.protection.outlook.com [52.101.72.69]) by sourceware.org (Postfix) with ESMTPS id 376614BA7980 for ; Mon, 16 Nov 2026 14:13:19 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 376614BA7980 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 376614BA7980 Authentication-Results: sourceware.org; arc=pass smtp.remote-ip=52.101.72.69 ARC-Seal: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1794838399; cv=pass; b=weosSKmJNO9nRQwhfrRSKC/FuTTkWC12xlRzlSeQ7r6qpjAF3ol5rnYjcS0Me+aoQ2sdUrwOrmYn7ly6ITdBUU9xQXfgfeyKnttAdZALAFL+WB75nDnq5VqEklRy5ph3XbjPt/slPJWS3cRqXkhJprR3pw1cM1PXPyfkLLkQoOo= ARC-Message-Signature: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1794838399; c=relaxed/simple; bh=iWZ0PzfiV9n/O4PEYr901Y92f4s1gx4K727dXTE+5Pg=; h=DKIM-Signature:DKIM-Signature:From:To:Subject:Date:Message-ID: MIME-Version; b=bSEl8eepck8YhX6ioaJv0Hxy3fKoM2wfzXjZSct/bfaGoqIgOoe9lklugwE29+eARk1WX0O+NBtPjgGs1wJQ+eMZ58iqxJbUCurxH++4CPbVNDMVnjFc6a3X/BFR1xOQwblxY5IVIMQPntueELYewRSk0NN8GR0pcFzFv9R33+s= 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=Df2StTWt; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=selector1 header.b=Df2StTWt DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 376614BA7980 ARC-Seal: i=2; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=pass; b=TmUz5aBC5/A6lt188U95gIho+IGZc9GjOicSuN6UCYZPQWD/5Kmj1FHvo7PvE1iFF1Wz0Kt2Mg41oQ0dWawwNhVHq2HGhYUo6CyliWZ5Se8UhJdXJ9hpdjKUOBfHqfcUXh/YS1vuK8twyCYH65KoYaUGp3Iki/SMBT7adS9EIiDBEtbTIQ/GfdGhja8AWDqEXJKpsLQdTqKJsIqfTZBz84NNqcl7rmhAkTrx7AW9bfPc3mG0iaXEub8Js3ecLI498InpW/spkI+qGHJQMfVPA850Z0J1IhR1tSe2M3Z+L1kAoiW4yCXXl1qiWFZ/gBaIWAGZ63xUZd+3bw5oczQxDw== 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=8pvw28N7dlqAnMGHhkKvK3znCiB27MtJV29E/Ym9lSo=; b=FVSdqqZq0ZREW4PvlKfXIK/aP4nPW3ggVpL0r8GX/BX3OFN6jiPc1edS8GP3095z1+Glx93LsG9RhxcfnfPQyp6qcw8JmcnmFsj01iwGDid+Swz1kxTJlsrrwTaRZSJnaAjimdKdd9b8FWywbJU3M/WA7gMhKQi1tdGx+V9auUBLyWpXNqFVsZTq9OEk1K4kT6dNLxuDPVaF2TWVlgzd93iR9E9fy3JitS4g2Wp9+SyPp1xkK2DX49lCvduyCQr5KwEUxUCopUUnQhTZ8vwfqvs5XZSFcsJFjoLBwImkaelmqjY/2Fz+Jsi8iIKuRvIa5CO1IeFaDwWgcMWimR92QQ== ARC-Authentication-Results: i=2; mx.microsoft.com 1; spf=pass (sender ip is 4.158.2.129) 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=8pvw28N7dlqAnMGHhkKvK3znCiB27MtJV29E/Ym9lSo=; b=Df2StTWtfCjiUIJ2Bs+9dmUEnWrBfofq8nUohLqwDTaudEyJwZD1j6DeBJycclOi2DUnfiEDmYPBfAV/QBEdwOe0Mt7P+P0OnxAbfYYaikfEneLvrPv+HarRziG8D8vP53NLHuVs37pc6Z2m8TIr1+vEpX4iqkZB/ucS8MURyd8= Received: from PA7P264CA0415.FRAP264.PROD.OUTLOOK.COM (2603:10a6:102:39b::18) by PAXPR08MB7552.eurprd08.prod.outlook.com (2603:10a6:102:24f::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.592.12; Mon, 16 Nov 2026 14:13:12 +0000 Received: from MAD0EPF000008C5.eurprd05.prod.outlook.com (2603:10a6:102:39b:cafe::4b) by PA7P264CA0415.outlook.office365.com (2603:10a6:102:39b::18) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.615.13 via Frontend Transport; Mon, 16 Nov 2026 14:13:12 +0000 X-MS-Exchange-Authentication-Results: mx.microsoft.com 1; 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 MAD0EPF000008C5.mail.protection.outlook.com (10.167.241.201) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.615.4 via Frontend Transport; Mon, 16 Nov 2026 14:13:09 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=UgnfiDo3dwDi7xKeAAhbsefC2WYhwu9UHQ1ZuwSRFvV53ydoezCdEo7irMlBWQZmRWHn0r+k+t5fqxkw4uMQsDKwoNP5i94qjZZuSDHLb7ACbA3VKOQv+p55UDl86EPd5DCFhKZgRol0EPaVtr2Y7IT9qC7NlSiI1JF9zi8Ubrplpvyc079CSRw2MacX5va/qjDe8EAi6PDPlnb8eYv6LuDexCgKbnkY1/U5q50axsv+pc+6afCo6AzrT2fAXvfb3tzGHQ90dwvyl7IN0OFaDfSDJBG5tjQ5Ol/I66ISoHMixlQAILnPuoGh5xNJftk5DW/PgPdCCF96de1JDXdXrA== 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=8pvw28N7dlqAnMGHhkKvK3znCiB27MtJV29E/Ym9lSo=; b=txOUkgDsqVD+znlpQjuFAthX4ogCQHxQwhPRoxkF6/8dP5I7Xsik6q2owELZSF15M8E/AzPRRj8ob6GJvF7woltPBq9uItk+eC1u5ap0mOha/iBjkpzFz5j96XWUmSYk9A+aU8Bfis4euXZCWQg3zaCONI+WvZuvJIaqN/eKqsJ6by8RjbBWqx7TdQT1PBR5oBUFxloFYGneKpWeWXrSxbkBXG2J+QDcX3yy5Hts3+8Bvz5x2vTnDLCDIe/nvGqYRJoKN3G5tSFJGybD18dorO/o6Vgp3Y/G5Zxf/fGM99QLcYDp7JGtmDnF5IU10uCiI7UNvjPyuuY7jPSeCBybFw== 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=8pvw28N7dlqAnMGHhkKvK3znCiB27MtJV29E/Ym9lSo=; b=Df2StTWtfCjiUIJ2Bs+9dmUEnWrBfofq8nUohLqwDTaudEyJwZD1j6DeBJycclOi2DUnfiEDmYPBfAV/QBEdwOe0Mt7P+P0OnxAbfYYaikfEneLvrPv+HarRziG8D8vP53NLHuVs37pc6Z2m8TIr1+vEpX4iqkZB/ucS8MURyd8= Received: from DB9PR08MB7145.eurprd08.prod.outlook.com (2603:10a6:10:2c7::16) by PAWPR08MB9892.eurprd08.prod.outlook.com (2603:10a6:102:342::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.615.14; Mon, 16 Nov 2026 14:12:32 +0000 Received: from DB9PR08MB7145.eurprd08.prod.outlook.com ([fe80::e0de:a124:229a:c207]) by DB9PR08MB7145.eurprd08.prod.outlook.com ([fe80::e0de:a124:229a:c207%5]) with mapi id 15.21.0615.009; Mon, 16 Nov 2026 14:12:32 +0000 From: Srinath Parvathaneni To: gdb-patches CC: Luis Machado , Thiago Jung Bauermann , Yury Khrustalev , Andre Simoes Dias Vieira , Guinevere Larsen , Matthieu Longo Subject: [RFC] gdb/linux-tdep: Show per-thread overlay and effective permissions in info proc mappings Thread-Topic: [RFC] gdb/linux-tdep: Show per-thread overlay and effective permissions in info proc mappings Thread-Index: Ad110/8nPTO8EWrqQrSFDrjKeyMjyg== Date: Mon, 16 Nov 2026 14:12:32 +0000 Message-ID: Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: Authentication-Results-Original: mx.microsoft.com 1; dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; x-ms-traffictypediagnostic: DB9PR08MB7145:EE_|PAWPR08MB9892:EE_|MAD0EPF000008C5:EE_|PAXPR08MB7552:EE_ X-MS-Office365-Filtering-Correlation-Id: d5dac398-9848-4533-bd3b-08df43ebbe22 x-checkrecipientrouted: true nodisclaimer: true X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; ARA:13230040|23010399003|366016|1800799024|376014|38070700021|10067099003|56012099006|5023799004|11063799006|261026121527099003|261026140227099003|261028144727099003|261021121427099003|261022075727099003|261022105027099003|261102123227099003|18002099003|3023799007; X-Microsoft-Antispam-Message-Info-Original: QEhxjVRoneXrH/ttyK+ZpaQTSRD9rpPQAKvSoQTztxOxLYDcfAtKhwR4sN9Dn30GrnG4e4TsD1sAoB30lZlRM6uEdYqMmZ+p8ilDrEAudDYaHA+o1QmtHUW+BMOQHNI5UGCfltmmuOtvmxwGULB5fNVPBtdTnT5+3ZY6MgcZEEYZTXJaYzUG//9Bn7lP70tce5eHnAuP9x9woez3InLQPJic3FA6YSPeRujJAVh3PssQzo9xxyM33SZliGpqbDdDTC7zDeAOxQm8kZYjcj/v6/And3w20doNofrLFBYGokMDa83j8HrEBh/S+rqSA9jm3kdR/+iOVjpP5r0sPlVMOt6kG2Bsar2rw7brr7DRa1gy5Kvf1ZW7RWaj1jUpPRgj4TSav4ADXqlAA2C4pL0MI1/gq2L9fNAYgmdHfbLMB0BGfcNo0i2oi+Mm9jg+a3J9TyJT9eWpXtF6J0VdYlTC8e2qN+ITNaosVzcug6ZSU3zHD2qLmPJV271G5W1w4bedOhoci8A/+A+k7Umm3u6xwsNyTDzSpADfE8Ht7D2uRre/4KopqIBz+v7YzC2QPbYGvCbcoPufMQNRPSHpvr2XRpgPRnU4FdbcSQn9F+I0e5dGVtpmATqc4FtPPDtVWvLqRAlrnR3Ie4ElCmNogncXC0QFZTiRTCavweZOZuZKdwyPzc0f3gGN70j6lspOocUgEfwpIWsbQXmRW7Gs5v0yM7mk6OaggfyBYPFSMmR6ne0= X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DB9PR08MB7145.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(23010399003)(366016)(1800799024)(376014)(38070700021)(10067099003)(56012099006)(5023799004)(11063799006)(261026121527099003)(261026140227099003)(261028144727099003)(261021121427099003)(261022075727099003)(261022105027099003)(261102123227099003)(18002099003)(3023799007); DIR:OUT; SFP:1101; Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Exchange-RoutingPolicyChecked: NcC97nQCY02eR5RF/cGdhgMAUnL6hKy8HcRWu5eaV1cJ+WzMEzz1dOC8IC0A18GUxyxV4mTLZnLbgJQUjCRZAgTNEwp3KxLHqyeBP/JkMliChUjuPlx59pFlR60tedT8JcUnd9yRuuSEde/2Ozc0IF89WeKRPfKMetU6w7vRzjysHTXjLVqop436m66x4woNTrCsgX9lTVLwdXU1jQKZ82uwTVgg5pv3pS6HZj4uBFeLDiHZbpzj6x9toHez47A9IPG2X5i9I+ixfu0Y5/+K6Gsq16DhQDWOiB6OOypPST61p2g6CfzvJJBKYcAOshwD8UpPcXZRQUBjGgD9FBwerg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAWPR08MB9892 X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: MAD0EPF000008C5.eurprd05.prod.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 55e5b5a8-e41a-48aa-8487-08df43eba7c5 X-Microsoft-Antispam: BCL:0; ARA:13230040|35042699022|23010399003|14060799003|376014|82310400026|1800799024|36860700016|11063799006|5023799004|261102123227099003|261028144727099003|261026140227099003|261022075727099003|261022105027099003|56012099006|261026121527099003|261021121427099003|10067099003|18002099003|3023799007; X-Microsoft-Antispam-Message-Info: Wr6d/AwDfzfWQ5Nh0vAl7oQlq+sXfvo79+mNZYaYX6hwLj2sCTT7xV9S3QESBcl+JJjOveJh4LKpjxZcQu1bX50t/KxqI2Q6jo2H62TOTiZpZJZ7CzQe1F8ELtpfuTomwagGxCgwHqJj0O3X82HleVaY5ExRnmN39v9sxCFbkKRNdpOKEPesz2NT89d4+eH7pCRnNYiM8qiZJ3lKLtpCbnN7sgNz7jXWhVE6CTT6sD7LYpxlW4l6dOYVuse3tHcFt8W/heVdNNrK7wHV6nFM3X97D1C3F7xNSPuzLwIhtEB8xNIFt4XgL6nDUaHx5Il0WyOT3KFMDvUcIVhrNujQe+sibuNMpjyTpvoF2B3ei22AOivph/sWEYogU8U0ulG7cEy3+Vb5KsOIStXUbYZLkHBo64OE6CDGkfK/VeZTCBP4BeQt44M811ZApiB64zivg+4Yj10Lus9WATgNGO0EGT/KhKFgNs/lwcH0KU7TZYkw1Wc+CLK70U/DMPG1ZlmIVGJyAphwvwP1850gKRxmnBa8IwPhXGt2XpNO5lOXisst6eAE9z8ImoUgFA7D9B466LpUX8JRrwFLApRgqHDkjw+et2z8Rg+tEMkWIOggrWJDzh4oxEehxxb5UpTSjlCLyzUMwXRHAIK8Tv7RnWLUBsI0DYNrcD9zyNMSH5WHq+jjJyiJqVLxNCkQIJyWy2OK9L52y5ZJ61lpvkrKOu/ZbQ== 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)(35042699022)(23010399003)(14060799003)(376014)(82310400026)(1800799024)(36860700016)(11063799006)(5023799004)(261102123227099003)(261028144727099003)(261026140227099003)(261022075727099003)(261022105027099003)(56012099006)(261026121527099003)(261021121427099003)(10067099003)(18002099003)(3023799007); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: ycsiciZTmv67QNGyp2v/ZEYzHgqAdVn2sxiNggUJor2R//IYmJb1iVi7kHV5Lkga6iOfU4ecicFjHGqs53xGKh17FtJiESIeY7R4YZX3rX98akXLruzsFSjmaCLPfczcYjB5eku6tJq5oAcVqeFNsIGVu1wVnXCE/t9zo7Y61ZRXfrt8U/QUDEVbPLNtCfb8l1a5K6s19l3QQis5UEexUetbJU0KHWuNvU5glQTGE4gcQlJYR23l4JZ8hKJXkPYSEPfloHcoRVThTOBahLfp1MNbFVobzNbQs8GrF72evvFqEG/NWy9rn3wTsYhDtPlHCR0o3pamOVzDnX3OHb9A/pQR+aRufk1z4lyNunQWwcs7+T5qlIo6JixXowd4VHUibuLORRCTux1lwiOATntURkMP1luBaSqHn6tBcQL6R7zABuk5DyIuJk/kh4m5W0Ty X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Nov 2026 14:13:09.3673 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: d5dac398-9848-4533-bd3b-08df43ebbe22 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: MAD0EPF000008C5.eurprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR08MB7552 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 all, I've been working on extending `info proc mappings` to show memory Protecti= on Keys (PKeys), and I'd like to get some feedback on adding per-thread overla= y and effective permissions. I've got the PKey extraction from `/proc/PID/smaps` working locally, but ha= ven't submitted that part upstream yet. On AArch64 Linux, threads can have different effective permissions for the = same memory mapping because each thread has its own `POR_EL0` value. I'd like to= make this information visible directly in `info proc mappings`. I'm thinking of adding two optional arguments: (gdb) info proc mappings [PID] [-threads | -thread=3DN] * `-threads` would show overlay and effective permissions for all threads o= f the current inferior. * `-thread=3DN` would show permissions for a specific GDB thread, using its per-inferior thread number. Without either option, the command would continue to show the usual mapping= s, with the PKey column when available. Here are a few examples of how the output would look. The mapping tables ar= e shortened for readability. 1. Normal mappings with PKey (working locally) (gdb) info proc mappings process 847 Start Addr End Addr Perms PKey File 0x400000 0x401000 r-xp 0 /tmp/a.out 0x500000 0x502000 rw-p 1 [heap] 2. Show permissions for all threads (gdb) info proc mappings -threads process 847 Start Addr End Addr Perms PKey File 0x400000 0x401000 r-xp 0 /tmp/a.out Thread 1: effective perms: r-x overlay perms: rwx Thread 2: effective perms: r-x overlay perms: rwx 0x500000 0x502000 rw-p 1 [heap] Thread 1: effective perms: rw- overlay perms: rwx Thread 2: effective perms: r-- overlay perms: r-- 3. Show permissions for a specific thread (gdb) info proc mappings 847 -thread=3D2 process 847 Start Addr End Addr Perms PKey File 0x400000 0x401000 r-xp 0 /tmp/a.out Thread 2: effective perms: r-x overlay perms: rwx 0x500000 0x502000 rw-p 1 [heap] Thread 2: effective perms: r-- overlay perms: r-- 4. Inspect mappings of another process (gdb) info proc mappings 950 process 950 Start Addr End Addr Perms PKey File 0x700000 0x701000 r-xp 0 /tmp/worker 0x710000 0x712000 rw-p 3 [heap] For now, I'd limit the thread-specific output to the current inferior. If a different PID is specified with `-threads` or `-thread=3DN`, the command wo= uld report an error. 5. When PKey information isn't available If the kernel doesn't report `ProtectionKey` in `smaps`, the normal mapping= s output would remain unchanged, without the PKey column. If thread information is explicitly requested, I'd report an error: (gdb) info proc mappings -threads ProtectionKey information is unavailable; thread permissions cannot be disp= layed. 6. When PKey is available but overlay permissions aren't GDB already supports `POR_EL0` through `NT_ARM_POE` on AArch64 Linux. Howev= er, other architectures can report PKeys without having `POR_EL0`, and the regi= ster might also be unavailable on some targets. In that case, I'd report: (gdb) info proc mappings -thread=3D2 Overlay permissions for ProtectionKey 1 are unavailable for Thread 2. The idea is to keep the existing command behaviour unchanged unless thread information is explicitly requested. Thread details would only be shown for mappings with a reported PKey, including PKey 0. Before I start implementing the thread-specific part, I'd appreciate feedba= ck on a few things: 1. Does adding this information to `info proc mappings` seem reasonable? 2. Do `-threads` and `-thread=3DN` look suitable? 3. Does the indented output for each thread look sensible? 4. Have I missed any scenarios or existing behaviour that these changes mig= ht affect? Note: The `-threads` option could produce substantial output for processes = with many mappings and threads. I considered limiting or grouping the outp= ut, but GDB already supports pagination for long command output. I intend= to keep the output straightforward and verify that pagination, including quitting with `q`, works correctly with the additional thread informa= tion. Regards, Srinath