Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Ezra Sitorus <ezra.sitorus@arm.com>
To: Srinath Parvathaneni <Srinath.Parvathaneni@arm.com>
Cc: Thiago Jung Bauermann <thiago.bauermann@linaro.org>,
	"gdb-patches@sourceware.org" <gdb-patches@sourceware.org>,
	"luis.machado.foss@gmail.com" <luis.machado.foss@gmail.com>,
	"guinevere@redhat.com" <guinevere@redhat.com>,
	Matthieu Longo <Matthieu.Longo@arm.com>
Subject: Re: [PATCH v2 2/7] gdb/aarch64: Add custom printing for POR_EL0
Date: Mon, 29 Jun 2026 16:58:20 +0100	[thread overview]
Message-ID: <akKWHPaUbb2jAaOS@D2G2X7XGD1.cambridge.arm.com> (raw)
In-Reply-To: <AS8PR08MB10099AF828BCAA07C846ED62E9BE82@AS8PR08MB10099.eurprd08.prod.outlook.com>

> The approach you suggested above is actually what I used in v1
> (https://sourceware.org/pipermail/gdb-patches/2026-June/228082.html).
> With that approach, I was able to display the custom string for
> info registers, info all-registers, and print $por_el0.
> 
> However, the problem I faced was when the register type was por_flags.
> In that case, "set $por_el0 = <value>" failed with an "Invalid case" error.
> Because of this, I had to drop support for writing to por_el0 in the initial
> version of the patch.
> 
> When I tried to resolve this, the only approach I found was to use
> type="uint64_t" so that set works and I have implement the custom string
> handling specifically for info register $por_el0. The downside is that this does
> not affect print $por_el0.

Your v1 version/Thiago's suggestion seems to be what I did for fpmr.  I'm not
sure how it's different than the fpmr case - there's even a test case where I
check writing to fpmr as well: gdb/testsuite/gdb.arch/aarch64-fpmr.exp. This
seems just like the test you have in the patch no. 7 tests.

I'll try to test out your new patch series with the XML version. The previous
version didn't have store_poeregs_to_thread.

Ezra

  reply	other threads:[~2026-06-29 16:00 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
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 [this message]
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=akKWHPaUbb2jAaOS@D2G2X7XGD1.cambridge.arm.com \
    --to=ezra.sitorus@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=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