From: Thiago Jung Bauermann <thiago.bauermann@linaro.org>
To: Srinath Parvathaneni <Srinath.Parvathaneni@arm.com>
Cc: "gdb-patches@sourceware.org" <gdb-patches@sourceware.org>,
"luis.machado.foss@gmail.com" <luis.machado.foss@gmail.com>,
"guinevere@redhat.com" <guinevere@redhat.com>,
Ezra Sitorus <Ezra.Sitorus@arm.com>,
Matthieu Longo <Matthieu.Longo@arm.com>,
Mark Rutland <Mark.Rutland@arm.com>,
"maz@kernel.org" <maz@kernel.org>
Subject: Re: [PATCH v2 1/7] gdb/aarch64: Add POR_EL0 register support for FEAT_S1POE
Date: Wed, 01 Jul 2026 05:16:21 +0000 [thread overview]
Message-ID: <874iijguhm.fsf@linaro.org> (raw)
In-Reply-To: <AS8PR08MB100995E349C5BFAF1F5A4BCAC9BE82@AS8PR08MB10099.eurprd08.prod.outlook.com> (Srinath Parvathaneni's message of "Mon, 29 Jun 2026 10:44:27 +0000")
Hello Srinath,
Srinath Parvathaneni <Srinath.Parvathaneni@arm.com> writes:
>>> * info registers por_el0
>>> * p $por_el0
>>> * p/x $por_el0
>>> * set $por_el0 = <value>
>>
>>One question, more about general policy on the AArch64 GDB port:
>>
>>Should the register name have the _el0 suffix? It's more than half of
>>the register name (though tab completion helps).
>>
>>We don't currently have that suffix in the name of any register. And in
>>the case of Guarded Control Stack, I didn't add it. For native
>>debugging, it will always be the register at EL0. For remote debugging,
>>I assumed the target would send the register corresponding to the
>>current exception level in the inferior.
>>
>>Can there be a situation where it would be possible to see both the EL0
>>and EL1 (for example) registers at the same time? Or a situation where
>>the inferior is at EL1 but one wants to see the register at EL0, or
>>vice-versa?
>>
>
> Thanks Thiago for the review. I'll address the other review comments and
> post a new version of the patches.
>
> I'm happy to follow the existing AArch64 GDB convention and expose the register
> as `POR` for consistency.
>
> That said, after discussing this with kernel/KVM developers, there are valid
> debugging scenarios (e.g. KGDB or guest debugging via KVM/QEMU) where exposing
> `POR_EL0`, `POR_EL1`, and `POR_EL2` simultaneously would be useful.
Thanks for checking! Considering it's indeed useful then it's better to
use $por_el0 in this patch series as you have done.
> This seems like a broader GDB register naming issue rather than
> something specific to FEAT_S1POE.
I agree. This just seemed like a good moment to consider this question.
--
Thiago
(he/him)
next prev parent reply other threads:[~2026-07-01 5:16 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-26 18:08 [PATCH v2 0/7] gdb/aarch64: Add support for FEAT_S1POE feature srinath.parvathaneni
2026-06-26 18:08 ` [PATCH v2 1/7] gdb/aarch64: Add POR_EL0 register support for FEAT_S1POE srinath.parvathaneni
2026-06-27 6:06 ` Thiago Jung Bauermann
2026-06-29 10:44 ` Srinath Parvathaneni
2026-07-01 5:16 ` Thiago Jung Bauermann [this message]
2026-07-01 14:45 ` Marc Zyngier
2026-06-26 18:08 ` [PATCH v2 2/7] gdb/aarch64: Add custom printing for POR_EL0 srinath.parvathaneni
2026-06-27 7:03 ` Thiago Jung Bauermann
2026-06-29 7:02 ` Srinath Parvathaneni
2026-06-29 15:58 ` Ezra Sitorus
2026-06-26 18:08 ` [PATCH v2 3/7] gdb: Improve SIGSEGV diagnostics for POE faults srinath.parvathaneni
2026-06-29 2:42 ` Thiago Jung Bauermann
2026-06-26 18:08 ` [PATCH v2 4/7] gdbserver/aarch64: Add POR_EL0 register support srinath.parvathaneni
2026-06-29 2:43 ` Thiago Jung Bauermann
2026-06-26 18:08 ` [PATCH v2 5/7] bfd/readelf: Add core file support for FEAT_S1POE srinath.parvathaneni
2026-06-29 2:43 ` Thiago Jung Bauermann
2026-06-26 18:08 ` [PATCH v2 6/7] gdb/aarch64: " srinath.parvathaneni
2026-06-29 2:44 ` Thiago Jung Bauermann
2026-06-26 18:08 ` [PATCH v2 7/7] gdb/testsuite: Add FEAT_S1POE testcases srinath.parvathaneni
2026-07-01 5:12 ` Thiago Jung Bauermann
2026-06-29 12:18 ` [PATCH v2 0/7] gdb/aarch64: Add support for FEAT_S1POE feature Guinevere Larsen
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=874iijguhm.fsf@linaro.org \
--to=thiago.bauermann@linaro.org \
--cc=Ezra.Sitorus@arm.com \
--cc=Mark.Rutland@arm.com \
--cc=Matthieu.Longo@arm.com \
--cc=Srinath.Parvathaneni@arm.com \
--cc=gdb-patches@sourceware.org \
--cc=guinevere@redhat.com \
--cc=luis.machado.foss@gmail.com \
--cc=maz@kernel.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