Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Matthieu Longo <matthieu.longo@arm.com>
To: Thiago Jung Bauermann <thiago.bauermann@linaro.org>,
	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>
Subject: Re: [RFC] gdb/linux-tdep: Show per-thread overlay and effective permissions in info proc mappings
Date: Thu, 26 Nov 2026 12:17:33 +0000	[thread overview]
Message-ID: <85811816-017e-42ee-a0a2-a638eec959a3@arm.com> (raw)
In-Reply-To: <87y0aoj7qu.fsf@linaro.org>

On 20/11/2026 07:13, Thiago Jung Bauermann wrote:
>> 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.

`info proc mappings`'s output could be filtered according to the memory area, pkey, base permissions.
In the same way, the detailed output per thread could be filtered by thread ID, overlay permissions,
and effective permissions.
Please note that I am not saying that we should implement a filter for each of those dimensions.

If I followed Srinath's thoughts correctly, `-threads` mean "display informations related to threads
(if available)".
So filtering threads with something like `-threads=ID1,ID2,ID3` would seem off, hence the proposal
of Srinath to add filtering with a different option `-thread THREAD_ID`.
@Srinath: please correct me if my understanding is wrong.

My issue with this approach is that it makes the filtering very verbose if we would like to filter
on several threads --> -thread THREAD_ID1 -thread THREAD_ID2 ...

Why not filtering options with a common prefix `-filter-${DIM} PARAM1,PARAM2,PARAM3` ?
And allow several filtering values as a list ?
If we want to add a new dimension later, we could do it easily without name collision.
However, since the equal sign separating its option and values is not the standard approach in GDB,
`-option VALUE1,VALUE2,VALUE3` might be more difficult to parse, I don't know.

Matthieu

      reply	other threads:[~2026-11-26 12:19 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
2026-11-26 12:17   ` Matthieu Longo [this message]

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=85811816-017e-42ee-a0a2-a638eec959a3@arm.com \
    --to=matthieu.longo@arm.com \
    --cc=Andre.SimoesDiasVieira@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 \
    --cc=thiago.bauermann@linaro.org \
    /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