Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Andrew Cagney <ac131313@cygnus.com>
To: Fernando Nasser <fnasser@redhat.com>,
	Keith Seitz <keiths@redhat.com>, Jim Ingham <jingham@apple.com>
Cc: gdb-patches@sources.redhat.com
Subject: Re: Nother little one, this time in varobj.c
Date: Wed, 10 Apr 2002 07:33:00 -0000	[thread overview]
Message-ID: <3CB44D34.70409@cygnus.com> (raw)
In-Reply-To: <3CB43CB7.F7BBB223@redhat.com>

> Keith Seitz wrote:
> 
>> 
>> On Tue, 9 Apr 2002, Jim Ingham wrote:
>> 
> 
>> > BTW, I am not sure why it is necessary to call reinit_frame_cache here.
>> > Keith, do you remember why this was necessary?  It is inefficient,
>> > especially if you are evaluating a bunch of variables that are fairly
>> > high up on the stack.  But since I don't remember why this was done, I
>> > am reluctant to just change it outright...
> 
>> 
>> I haven't a clue, actually. When I originally wrote varobj for Insight, it
>> did not allow varobjs to change frames dynamically, as it does now.
>> Presumably, this was all added at the same time. (Or I've forgotten all
>> about it...)
>> 
> 
> 
> The frames code was already there when I converted it to gdbtk-varobj.c,
> so it was added in between.  It seemed to work though.

Just FYI,

GDB is trying to move away from the global selected_frame switching 
technique.  The theory is that there is ``always'' a frame so that the 
selected frame parameter is made explicit to the code that uses it.  As 
the conversion goes through, there is going to be an intermediate mess.

As for reinit_frame_cache() who knows.  One reason for trying to push a 
``keep it simple stupid'' flush-on-write approach (just flush everything 
if the target changes) is that, as with the above, no one is sure what 
the existing strategy is.

enjoy,
Andrew


  reply	other threads:[~2002-04-10 14:33 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-04-09 17:36 Jim Ingham
2002-04-09 23:44 ` Keith Seitz
2002-04-10  6:27   ` Fernando Nasser
2002-04-10  7:33     ` Andrew Cagney [this message]
2002-04-10 11:07   ` Jim Ingham

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=3CB44D34.70409@cygnus.com \
    --to=ac131313@cygnus.com \
    --cc=fnasser@redhat.com \
    --cc=gdb-patches@sources.redhat.com \
    --cc=jingham@apple.com \
    --cc=keiths@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