From: Thiago Jung Bauermann <thiago.bauermann@linaro.org>
To: Srinath Parvathaneni <Srinath.Parvathaneni@arm.com>
Cc: gdb-patches <gdb-patches@sourceware.org>,
Luis Machado <luis.machado.foss@gmail.com>,
Yury Khrustalev <Yury.Khrustalev@arm.com>,
Andre Simoes Dias Vieira <Andre.SimoesDiasVieira@arm.com>,
Guinevere Larsen <guinevere@redhat.com>,
Matthieu Longo <Matthieu.Longo@arm.com>
Subject: Re: [RFC] gdb/linux-tdep: Show per-thread overlay and effective permissions in info proc mappings
Date: Fri, 20 Nov 2026 07:13:13 +0000 [thread overview]
Message-ID: <87y0aoj7qu.fsf@linaro.org> (raw)
In-Reply-To: <DB9PR08MB714505E78EBED3CAB6EFD43D9B7C2@DB9PR08MB7145.eurprd08.prod.outlook.com>
Hello Srinath,
Sorry for the delay in answering.
Srinath Parvathaneni <Srinath.Parvathaneni@arm.com> 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)
next prev parent reply other threads:[~2026-11-20 7:13 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-16 14:12 Srinath Parvathaneni
2026-11-20 7:13 ` Thiago Jung Bauermann [this message]
2026-11-26 12:17 ` Matthieu Longo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87y0aoj7qu.fsf@linaro.org \
--to=thiago.bauermann@linaro.org \
--cc=Andre.SimoesDiasVieira@arm.com \
--cc=Matthieu.Longo@arm.com \
--cc=Srinath.Parvathaneni@arm.com \
--cc=Yury.Khrustalev@arm.com \
--cc=gdb-patches@sourceware.org \
--cc=guinevere@redhat.com \
--cc=luis.machado.foss@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox