Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Andrew Cagney <ac131313@redhat.com>
To: Daniel Jacobowitz <drow@mvista.com>
Cc: gdb-patches@sources.redhat.com, rearnsha@arm.com
Subject: Re: [RFA/ARM] Framificate the ARM port [3/3]
Date: Mon, 07 Jul 2003 14:46:00 -0000	[thread overview]
Message-ID: <3F0987C2.4010007@redhat.com> (raw)
In-Reply-To: <20030707134715.GA24634@nevyn.them.org>


> Makes sense.  I will need to cache a PC to fix some corner cases with
> signal trampolines, but I'm not fixing that bug right now.

Can you expand?  I can understand cacheing the previous frame's PC but 
not this frame's.


>> >+/* Assuming NEXT_FRAME->prev is a dummy, return the frame ID of that
>> >+   dummy frame.  The frame ID's base needs to match the TOS value
>> >+   saved by save_dummy_frame_tos(), and the PC match the dummy frame's
>> >+   breakpoint.  */
> 
>> 
>> ... tos() and returned by arm_push_dummy_call.
> 
> 
> Copied this comment verbatim from three other implementations.  You
> might want to update those.

Sigh!  Code is breeding again ...

>> >+/* Given THIS_FRAME, find the frame's resume PC (which will be part of the
>> >+   frame ID for THIS_FRAME's caller's frame).  */
> 
>> 
>> Given THIS_FRAME, find the PREV frame's resume PC (which will be used to 
>> find the PREV frame's function and that in turn used to construct the 
>> PREV frame's ID).
> 
> 
> Eh?  Uch, I suppose.  "resume PC" is a bit ambiguous.
> 
> The reason that I like my notation better is that I don't need to think
> about what "this frame's caller" means.  But every time I see NEXT or
> PREV I have to take five seconds to work it out.  Caller is
> unambiguous.

Don't forget that in the case of signal trampolines and sentinel frames 
there is no caller.

Older and younger work better but prev and next are what the dwarf2 spec 
and before that gdb, long ago, decided to use :-/

Andrew



  reply	other threads:[~2003-07-07 14:46 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-06-30 22:55 Daniel Jacobowitz
2003-07-01 15:32 ` Andrew Cagney
2003-07-07 13:47   ` Daniel Jacobowitz
2003-07-07 14:46     ` Andrew Cagney [this message]
2003-07-07 21:12       ` Daniel Jacobowitz
2003-07-01 18:27 ` Andrew Cagney
2003-07-01 22:26   ` Daniel Jacobowitz
2003-07-01 23:24     ` Andrew Cagney
2003-07-07 13:53       ` Daniel Jacobowitz
2003-07-07 14:23 ` Daniel Jacobowitz

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=3F0987C2.4010007@redhat.com \
    --to=ac131313@redhat.com \
    --cc=drow@mvista.com \
    --cc=gdb-patches@sources.redhat.com \
    --cc=rearnsha@arm.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