From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id 8Z7eACjz/2p8HCMAWB0awg (envelope-from ) for ; Fri, 20 Nov 2026 02:13:44 -0500 Authentication-Results: simark.ca; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=JggQfw8E; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id E0E141E0BC; Fri, 20 Nov 2026 02:13:43 -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 [38.145.34.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 9699D1E087 for ; Fri, 20 Nov 2026 02:13:42 -0500 (EST) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 69D404B920FB for ; Fri, 20 Nov 2026 07:13:41 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 69D404B920FB Authentication-Results: sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=JggQfw8E Received: from mail-vs1-xe33.google.com (mail-vs1-xe33.google.com [IPv6:2607:f8b0:4864:20::e33]) by sourceware.org (Postfix) with ESMTPS id DBD9C4B92086 for ; Fri, 20 Nov 2026 07:13:16 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org DBD9C4B92086 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=linaro.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org DBD9C4B92086 Authentication-Results: sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::e33 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1795158797; cv=none; b=NUvo1DwJnr02TWP5ippD0cJSlCZwKN2e2II3uqitNPRqaZM/iO4OgGI1Rn+kxXlzYbHwKTLxkKZ1Uy6e7a0Wil3z20Tj7UDaadKozlFHTOFyW//KkYzwCFugWVt6kqmn9Ovv8AbCOsRjWEzLOnvQOUl16w6ltQNM6y4J5LXTQvY= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1795158797; c=relaxed/simple; bh=x71eZyBprRK9TAoGpDEIhVbOIU04sXidpUsX6LZliAY=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=StMnTmqwvB5gAVUROFOWrU5j/l9w9xKEuBYVRFG2ASE9GVFAEdjCOLRtVh5I+CSrcAL5IzcsX/yq/etecZCAtwoFXX/mfUYDap1CE4OoX3h2XjiP1zDMquwX6g+hi2F8tMAww85tGx0vKs+QoQZWYGZsW7cI5qANMsQ0s0yrpOc= ARC-Authentication-Results: i=1; sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=JggQfw8E DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DBD9C4B92086 Received: by mail-vs1-xe33.google.com with SMTP id ada2fe7eead31-7d2d95c5d81so388281137.0 for ; Thu, 19 Nov 2026 23:13:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1795158796; x=1795763596; darn=sourceware.org; h=content-type:mime-version:message-id:date:user-agent:references :in-reply-to:subject:cc:to:from:from:to:cc:subject:date:message-id :reply-to:content-type; bh=foc1EDe2hbVnvFT5AH/NBuGDSi3n+K2lAqoiSwFpWEc=; b=JggQfw8E9mBrQqPFHjoiIijvVANEkEVZ5nRuh+PsGrozbtPjx2iqqy4NkFf2ZqTBPC dWOHQ5ZSrq8rWgvDHdpEpNxiEIQ3bGVk0vP5ie9/5d+Nh4xKcFqUBnH6LVcYEVTjslWQ m1BQIbQ8q/ONIIQwCxbVBYzYnDFdC9sqDMdP14UoiwvU78wr5vEjje3aZism0ZCpp+fp EiThV/KGqAqDwIrGkTTbJqX2S2A4I2Uwc6Jc2EpSaZL8G4cQwpWAnItb0ctJqOtUhkAV JQuj4E6/auAnDbGnTNogdc2bFN6g/jlaVAt7E1o//12uwR96TOvgZf+BnbdTOde3OeMO a6lg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795158796; x=1795763596; h=content-type:mime-version:message-id:date:user-agent:references :in-reply-to:subject:cc:to:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to:content-type; bh=foc1EDe2hbVnvFT5AH/NBuGDSi3n+K2lAqoiSwFpWEc=; b=EWWu0jy2PpcH9AAB7LC4Leu2HlD0p7+kxj0kOzQZ4S8DWRFuLJ2cgrYz0NPmFIEoT7 zw/nM79hVpwMAIskDfMvLIMTxcVk2OK3riKiYk+e0FbTxSMvbBDUqQ25hSMHWWYPI9oO G14pp8Pikub5kZ0+IqShWwoF56BOQY50fn8V20KxTOf//mqb4dJqmES77F6rL5joLq6q XlFPdtURb0n/GHzcPdIpCX2CdZCmd128C6RUt9bjIiN7L0tBs3k/0+xmnvKLnof+0gPH 5XxSFg/AB9FuvO+xmc83IHkM5uI0fs0Bauuiie88eKeW29prjcpIfEDwMXzIVcZd8+Rz E7Sw== X-Gm-Message-State: APuU4Z+uH8gXJcMtpZz9UzKA8gHzB09Zv4zdQP/lG+Zq4NPjCpYA6Jgp yaHIJsdkkOdGKV+G8OH736yNAMdpGB4AQazcGWFSn+ykdqH2gJolhKcyB+gQJ7dP+ej+n+X6Yi7 BHvcE X-Gm-Gg: AZFdTZc7AQUcYepK+lAUSwWPJfxdaAt0Wq36ubR24ZgL+AGzj/Z9h74MP4LZaOLrAnh VCgVporBRoVDaLfIL7gxibq9gVQk+STs5ehgzM7TjDBt0vojkgmJ0WkG1tey2LvYSw/sC77C09z 6UV2cQ86jmRIhTWGCx+D1ndgpBR0F6QGxCUKtlvK0psWVG23kmMSNiYyH0BsNJ7jju+34ggQySM XiMeeApu7uumfTzemYw8rssppVJd7t8ONiZBBjPofadZQrJ2+5Zeoj48CfkOBBvPY8D7plbkz0Q vZfOprqrGcGYUjv1LK8mNDL5ERyMFKdnPxlMNog8ecWOAhFR4+YByVCAv7a7tqn2yjIufhlToOZ 7WZKdT84+Oi5xQY5blxS20lrRcv6EM7u6PYq0ynNrCITIgFJas/VOD8GOQU8TYZy4dTPGGU5X7B lnznRib4RJSogg6X5EjIG6vytXmCdskmvcRgCHwIndz0+YFGYFqG1vZ9Mi7HfdanWuFgAiExSaH im1WxhqCpGCFL+aF1oKihDZ+t7N+nvE+P7uVHzqWy9uMy8sng1us31wRRAblM3QiBP6eQrYX0d+ HfoXo5OsIcESLC/yYO6fQ7iWsCZBBPbpbDCbFHe/ X-Received: by 2002:a05:6102:3709:b0:7c2:799c:9018 with SMTP id ada2fe7eead31-7d71e3301d9mr553331137.0.1795158796204; Thu, 19 Nov 2026 23:13:16 -0800 (PST) Received: from localhost ([2804:14d:7e39:8083:f04c:42e3:5943:38f6]) by smtp.gmail.com with ESMTPSA id ada2fe7eead31-7d6e81cee49sm2211451137.8.2026.11.19.23.13.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Nov 2026 23:13:15 -0800 (PST) From: Thiago Jung Bauermann To: Srinath Parvathaneni Cc: gdb-patches , Luis Machado , Yury Khrustalev , Andre Simoes Dias Vieira , Guinevere Larsen , Matthieu Longo Subject: Re: [RFC] gdb/linux-tdep: Show per-thread overlay and effective permissions in info proc mappings In-Reply-To: References: User-Agent: mu4e 1.14.4; emacs 31.1 Date: Fri, 20 Nov 2026 07:13:13 +0000 Message-ID: <87y0aoj7qu.fsf@linaro.org> MIME-Version: 1.0 Content-Type: text/plain 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 Hello Srinath, Sorry for the delay in answering. Srinath Parvathaneni writes: > Hi all, > > I've been working on extending `info proc mappings` to show memory Protection > Keys (PKeys), and I'd like to get some feedback on adding per-thread overlay > and effective permissions. Thank you for the detailed explanation and examples. > Before I start implementing the thread-specific part, I'd appreciate feedback on > a few things: > > 1. Does adding this information to `info proc mappings` seem reasonable? Yes, I think it's a good place to put it. > 2. Do `-threads` and `-thread=N` look suitable? Yes, except for the equal sign separating the option and its value. AFAIK no GDB command option uses this convention. `-thread N` is what we use. > 3. Does the indented output for each thread look sensible? It does. > 4. Have I missed any scenarios or existing behaviour that these changes might > affect? I can't think of anything. > Note: The `-threads` option could produce substantial output for processes with > many mappings and threads. I considered limiting or grouping the output, > 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 information. I agree that the existing pagination that GDB does is enough. -- Thiago (he/him)