Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Kevin Buettner <kevinb@redhat.com>
To: Andrew Cagney <ac131313@redhat.com>
Cc: Andreas Schwab <schwab@suse.de>, gdb-patches@sources.redhat.com
Subject: Re: ppc_linux_init_extra_frame_info
Date: Fri, 21 Feb 2003 17:29:00 -0000	[thread overview]
Message-ID: <1030221172923.ZM15417@localhost.localdomain> (raw)
In-Reply-To: Andrew Cagney <ac131313@redhat.com> "Re: ppc_linux_init_extra_frame_info" (Feb 21, 11:59am)

On Feb 21, 11:59am, Andrew Cagney wrote:

> ac131313@lulu$ frep deprecated_set_frame_type
> frame.c:1388:deprecated_set_frame_type (struct frame_info *frame, enum 
> frame_type type)
> frame.h:251:extern void deprecated_set_frame_type (struct frame_info *,
> i386-interix-tdep.c:166:            deprecated_set_frame_type (frame, 
> SIGTRAMP_FRAME);
> i386-interix-tdep.c:174:            deprecated_set_frame_type (frame, 
> SIGTRAMP_FRAME);
> ppc-linux-tdep.c:376:   deprecated_set_frame_type (fi, SIGTRAMP_FRAME);
> ppc-linux-tdep.c:380:   deprecated_set_frame_type (fi, NORMAL_FRAME);
> rs6000-tdep.c:181:    deprecated_set_frame_type (fi, SIGTRAMP_FRAME);
> 
> (Joel, I'm going to ignore interix :-/)
> 
> So it's solely PPC GNU/Linux that is the cause of all the problems.  An 

And AIX (from rs6000-tdep.c).

> addition to the comment;
> 
>    /* FIXME: cagney/2002-11-18: Should be setting the frame's type
>       here, before anything else, and not last.  Various INIT functions
>       are full of work-arounds for the frames type not being set
>       correctly from the word go.  Ulgh!  */
>    prev->type = NORMAL_FRAME;
> 
> is that, for legacy targets, you don't know at this point what the PC is.
> 
> Why not also modify the nasty ppc-linux hack to read:
> 
> 	if (get_frame_type () == NORMAL)
> 	  if (pc in sigtramp)
> 	   deprecated set frame type ()

That's okay with me.

Kevin


      reply	other threads:[~2003-02-21 17:29 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-02-21  0:14 ppc_linux_init_extra_frame_info Andreas Schwab
2003-02-21  1:48 ` ppc_linux_init_extra_frame_info Andrew Cagney
2003-02-21  4:53 ` ppc_linux_init_extra_frame_info Kevin Buettner
2003-02-21 16:55   ` ppc_linux_init_extra_frame_info Andrew Cagney
2003-02-21 17:29     ` 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=1030221172923.ZM15417@localhost.localdomain \
    --to=kevinb@redhat.com \
    --cc=ac131313@redhat.com \
    --cc=gdb-patches@sources.redhat.com \
    --cc=schwab@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