Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Kevin Buettner <kevinb@redhat.com>
To: Andrew Cagney <ac131313@ges.redhat.com>, gdb-patches@sources.redhat.com
Subject: Re: [patch/rfc/rfa*] Only compare against dummy frame tos when saved
Date: Thu, 19 Sep 2002 10:21:00 -0000	[thread overview]
Message-ID: <1020919172106.ZM21484@localhost.localdomain> (raw)
In-Reply-To: Andrew Cagney <ac131313@ges.redhat.com> "[patch/rfc/rfa*] Only compare against dummy frame tos when saved" (Sep 17,  8:55pm)

On Sep 17,  8:55pm, Andrew Cagney wrote:

> This change does, however, have the potential to break break every 
> target that sets save_dummy_frame_tos().  Going through the list of 
> targets (and treating any with a frame_chain() like the above as ok):
> 
> cris-tdep.c:  ok
> ia64-tdep.c:  ok
> mcore-tdep.c:  *** I suspect it doesn't but should
> mn10300-tdep.c:  *** I suspect it doesn't but should
> rs6000-tdep.c:  ok
> s390-tdep.c:  ok
> xstormy16-tdep.c:  ok (I think).
> 
> I think, for the two *** cases, the code can be tweaked to have 
> frame_chain() return frame->frame.
> 
> Thoughts?  Ok for the targets with maintainers?

I think this change will be okay for ia64 so long as the following
FIXME comment in ia64-tdep.c is fixed:

  /* FIXME: This doesn't belong here!  Instead, SAVE_DUMMY_FRAME_TOS needs
     to be defined to call generic_save_dummy_frame_tos().  But at the
     time of this writing, SAVE_DUMMY_FRAME_TOS wasn't gdbarch'd, so
     I chose to put this call here instead of using the old mechanisms. 
     Once SAVE_DUMMY_FRAME_TOS is gdbarch'd, all we need to do is add the
     line

	set_gdbarch_save_dummy_frame_tos (gdbarch, generic_save_dummy_frame_tos);

     to ia64_gdbarch_init() and remove the line below. */

At the moment, ia64 depends upon ->top being set, but your change will
disable the appropriate test because ia64-tdep.c doesn't (correctly) set
the SAVE_DUMMY_FRAME_TOS method.

I'll try to find a moment or two to give it a try...

Kevin


  reply	other threads:[~2002-09-19 17:21 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-17 17:55 Andrew Cagney
2002-09-19 10:21 ` Kevin Buettner [this message]
2002-09-26  9:35   ` Andrew Cagney

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=1020919172106.ZM21484@localhost.localdomain \
    --to=kevinb@redhat.com \
    --cc=ac131313@ges.redhat.com \
    --cc=gdb-patches@sources.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