Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Kevin Buettner <kevinb@redhat.com>
To: Guinevere Larsen <guinevere@redhat.com>, gdb-patches@sourceware.org
Subject: Re: [PATCH] gdb/record: remove PC member from record_full_instruction
Date: Wed, 25 Nov 2026 16:16:54 -0700	[thread overview]
Message-ID: <bd81a023-3433-482d-9a9d-314cbbe6c83a@redhat.com> (raw)
In-Reply-To: <20261125192807.1153538-1-guinevere@redhat.com>



On 11/25/26 12:28 PM, Guinevere Larsen wrote:
> The recent commit "4d0a9f412df gdb/record: extract the PC to
> record_full_instruction" caused a regression on s390x, because the
> recorded register is PSWA, whereas according to gdbarch the PC is a
> pseudoregister. This was reported as PR record/34937.
> 
> I tried to make s390 record the gdbarch version, but still got
> hundreds of regressions in the sigall tests. I then tried to make
> record ignore the PC member if the length was 0, but that caused
> problems in the precsave functionality, as we were writing 0 bytes but
> reading more than 0 as the reading GDB assumed the regnum of 0 was
> valid.
> 
> Considering the original motivation for that patch is a micro
> optimization (a reg_entry is smaller than a generic entry, and the
> vector is smaller) and improvement for a possible future fix of PR
> record/18059, it doesn't seem worth it to keep this speculatively.
> 
> Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=34937

I ran this through my AI patch review workflow.  While it wasn't able to
test on s390x, it did spot a minor problem - the lack of a version
number bump for the record-save file layout.

A NEWS file line mentioning this would probably be a good idea.

(You should seek approval for the NEWS entry from Eli.)

With the magic number bump, the coding parts of this change are
approved.

Approved-By: Kevin Buettner <kevinb@redhat.com>


      reply	other threads:[~2026-11-25 23:17 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-25 19:28 Guinevere Larsen
2026-11-25 23:16 ` Kevin Buettner [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=bd81a023-3433-482d-9a9d-314cbbe6c83a@redhat.com \
    --to=kevinb@redhat.com \
    --cc=gdb-patches@sourceware.org \
    --cc=guinevere@redhat.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