Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: "Ulrich Weigand" <uweigand@de.ibm.com>
To: brobecker@adacore.com (Joel Brobecker)
Cc: gdb-patches@sourceware.org
Subject: Re: [RFC] Use address_from_register in dwarf2-frame.c:read_addr_from_reg
Date: Thu, 17 Apr 2014 12:18:00 -0000	[thread overview]
Message-ID: <201404171217.s3HCHsn3001844@d03av02.boulder.ibm.com> (raw)
In-Reply-To: <20140416152935.GU4250@adacore.com> from "Joel Brobecker" at Apr 16, 2014 08:29:35 AM

Joel Brobecker wrote:
> > ChangeLog:
> > 
> > 	* gdbarch.sh (value_from_register): Make class "m" instead of "f".
> > 	Replace FRAME argument with FRAME_ID.
> > 	* gdbarch.c, gdbarch.h: Regenerate.
> > 	* findvar.c (default_value_from_register): Add GDBARCH argument;
> > 	replace FRAME by FRAME_ID.  No longer call get_frame_id.
> > 	(value_from_register): Update call to gdbarch_value_from_register.
> > 	* value.h (default_value_from_register): Update prototype.
> > 	* s390-linux-tdep.c (s390_value_from_register): Update interface
> > 	and call to default_value_from_register.
> > 	* spu-tdep.c (spu_value_from_register): Likewise.
> > 
> > 	* findvar.c (address_from_register): Remove TYPE argument.
> > 	Do not call value_from_register; use gdbarch_value_from_register
> > 	with null_frame_id instead.
> > 	* value.h (address_from_register): Update prototype.
> > 	* dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
> > 	* dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
> > 	address_from_register interface change.
> 
> FWIW, I am not a specialist here, but it seemed reasonable to me.
> 
> It took me a minute or two to figure out that you needed to make
> value_from_register a class "m" because you don't have access to
> the gdbarch via the frame anymore, so you have to have it passed
> directly. Perhaps it's worth a sentence in the revision log when
> you commit the patch?
> 
> Thanks for the detailed comment explaining why we use a null_frame_id
> in address_from_register, and why it's OK to do so. Very helpful!

Thanks for the review!   I've checked the patch in now.

Bye,
Ulrich

-- 
  Dr. Ulrich Weigand
  GNU/Linux compilers and toolchain
  Ulrich.Weigand@de.ibm.com


  reply	other threads:[~2014-04-17 12:18 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-14 17:00 Ulrich Weigand
2014-04-16 15:29 ` Joel Brobecker
2014-04-17 12:18   ` Ulrich Weigand [this message]
2014-08-27  4:01 ` Andrew Pinski
2014-08-27 12:21   ` Ulrich Weigand
2014-08-27 18:15     ` Maciej W. Rozycki
2014-08-28 11:51       ` Ulrich Weigand
2014-08-28 12:37         ` pinskia
2014-09-14 14:35       ` Maciej W. Rozycki
2014-09-15 11:40         ` Ulrich Weigand
2014-09-06 22:34     ` Andrew Pinski
2014-09-10 17:06       ` [COMMITTED] " Ulrich Weigand

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=201404171217.s3HCHsn3001844@d03av02.boulder.ibm.com \
    --to=uweigand@de.ibm.com \
    --cc=brobecker@adacore.com \
    --cc=gdb-patches@sourceware.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