public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
From: Simon Marchi <simark@simark.ca>
To: Tom de Vries <tdevries@suse.de>,
	Simon Marchi <simon.marchi@efficios.com>,
	gdb-patches@sourceware.org
Subject: Re: [PATCH] gdb: fix frame passed to gdbarch_value_to_register in value_assign
Date: Thu, 11 Jan 2024 13:08:51 -0500	[thread overview]
Message-ID: <a0a665c2-6279-454a-a8a6-d7223e943e8b@simark.ca> (raw)
In-Reply-To: <f446affc-75c4-4d07-b183-83dfe5808804@suse.de>

On 1/11/24 12:24, Tom de Vries wrote:
> On 1/11/24 17:51, Simon Marchi wrote:
>> Commit 78f2fd84e83 ("gdb: remove VALUE_REGNUM, add value::regnum")
>> introduced an unexpected change in value_assign.  It replaced
>> `get_prev_frame_always (next_frame)` with `next_frame`in the call to
>> gdbarch_value_to_register.
>>
>> This is the result of a merge error, since I previously had a patch to
>> change gdbarch_value_to_register to take the next frame, and later
>> decided to drop it.  Revert that change.
>>
>> Add a test based on the DWARF assembler to expose the problem and test
>> the fix.  I also tested on ppc64le to make sure the problem reported in
>> PR 31231 was fixed.
>>
> 
> I applied the patch on x86_64, ran the test-case, observed the internal error, rebuild gdb, and observed it pass.
> 
> Only one nit, I get:
> ...
> DUPLICATE: gdb.dwarf2/assign-variable-value-to-register.exp: p foo

Ah thanks, missed it.

> ...
> 
> Tested-by: Tom de Vries <tdevries@suse.de>

Thanks, will push with the duplicate test name fixed.

Simon

      reply	other threads:[~2024-01-11 18:08 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-11 16:51 Simon Marchi
2024-01-11 17:24 ` Tom de Vries
2024-01-11 18:08   ` Simon Marchi [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=a0a665c2-6279-454a-a8a6-d7223e943e8b@simark.ca \
    --to=simark@simark.ca \
    --cc=gdb-patches@sourceware.org \
    --cc=simon.marchi@efficios.com \
    --cc=tdevries@suse.de \
    /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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).