From: Kevin Buettner <kevinb@redhat.com>
To: Andrew Cagney <ac131313@cygnus.com>, gdb@sources.redhat.com
Subject: Re: think-o: frame.c:find_saved_register() frame1 = get_prev_frame (frame1) backwards?
Date: Fri, 15 Feb 2002 14:51:00 -0000 [thread overview]
Message-ID: <1020215225041.ZM9434@localhost.localdomain> (raw)
In-Reply-To: Andrew Cagney <ac131313@cygnus.com> "think-o: frame.c:find_saved_register() frame1 = get_prev_frame (frame1) backwards?" (Feb 12, 2:46pm)
On Feb 12, 2:46pm, Andrew Cagney wrote:
> (it dates back to prior to Red Hats CVS repository). I think this is
> going the wrong way, looking in frame.h the doco indicates:
>
> /* Pointers to the next (down, inner) and previous (up, outer)
> frame_info's in the frame cache. */
> struct frame_info *next; /* down, inner */
> struct frame_info *prev; /* up, outer */
>
> and blockframe.c:get_prev_frame() returns the next ``up, outer'':
>
> /* If we have the prev one, return it */
> if (next_frame->prev)
> return next_frame->prev;
>
> Given:
>
> a() { b (); }
>
> then it is b() that is saving registers used by a(). And b() is ``down,
> inner''.
>
> confused,
> Andrew
I don't know. I've also gotten confused when staring at this code. I
don't find the terms "next", "down", or "inner" to be helpful at all
when trying to figure it out either. I think we ought to be referring
to "callers" and "callees".
Kevin
next prev parent reply other threads:[~2002-02-15 22:51 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-02-12 11:46 Andrew Cagney
2002-02-15 14:51 ` Kevin Buettner [this message]
2002-02-15 14:54 ` Daniel Jacobowitz
2002-02-15 18:40 ` 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=1020215225041.ZM9434@localhost.localdomain \
--to=kevinb@redhat.com \
--cc=ac131313@cygnus.com \
--cc=gdb@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