Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Andrew Cagney <ac131313@cygnus.com>
To: Kevin Buettner <kevinb@redhat.com>
Cc: gdb@sources.redhat.com
Subject: Re: [rfc] ``pc'' -> resume_addr?
Date: Thu, 11 Apr 2002 17:08:00 -0000	[thread overview]
Message-ID: <3CB62591.8010207@cygnus.com> (raw)
In-Reply-To: <1020411234810.ZM4422@localhost.localdomain>

> On Apr 11,  7:35pm, Andrew Cagney wrote:
> 
>> Subject: Re: [rfc] ``pc'' -> resume_addr?
> 
>> > frame->pc    ==> frame->resume_addr
>> > 
>> > This, I think, should change.  I'm 99% sure that this isn't the
>> > hardware PC but rather the continue address for the frame (but
>> > notice I'm not 100% sure thanks to its poor definition).
> 
>> 
>> Hmm, there is another approach here.  As with frame_base() from my 
>> previous post, a more dynamic:
>> 
>> frame_resume_addr (frame)
>> 
>> that would let the ISA code compute it on demand using the frame's 
>> register information - in theory frame->pc could be removed.
> 
> 
> Sure.
> 
> But what are the advantages of doing it this way?  Is there a reason
> it needs to be this dynamic?

If it's computation is significant (target overhead), and its value 
isn't needed immediatly, then yes.

Consider the situtation JimI described.  An inferior function call 
invalidates the frame cache.  To re-find the selected frame after that 
call, GDB needs to re-create each frame until it locates the selected 
one.  During the search, the only thing that absolutly needs to be 
computed for each frame, is frame->addr.

enjoy,
Andrew


  reply	other threads:[~2002-04-12  0:08 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-04-11 13:38 Andrew Cagney
2002-04-11 13:58 ` Kevin Buettner
2002-04-11 15:15   ` Andrew Cagney
2002-04-11 16:35     ` Andrew Cagney
2002-04-11 16:48       ` Kevin Buettner
2002-04-11 17:08         ` Andrew Cagney [this message]
2002-04-11 17:37       ` Michael Snyder
2002-04-11 16:42     ` Kevin Buettner
2002-04-11 17:39       ` Michael Snyder
2002-04-11 17:34     ` Michael Snyder
2002-04-12  8:59       ` Andrew Cagney
2002-04-13 20:21         ` Andrew Cagney
2002-04-11 17:25 ` Michael Snyder
2002-04-26  8:09 ` 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=3CB62591.8010207@cygnus.com \
    --to=ac131313@cygnus.com \
    --cc=gdb@sources.redhat.com \
    --cc=kevinb@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