public inbox for insight@sourceware.org
 help / color / mirror / Atom feed
From: Keith Seitz <keiths@cygnus.com>
To: Fernando Nasser <fnasser@redhat.com>
Cc: Insight Maling List <insight@sources.redhat.com>
Subject: Re: Variable errors
Date: Wed, 11 Apr 2001 11:31:00 -0000	[thread overview]
Message-ID: <Pine.SOL.3.91.1010411112403.14548X-100000@ryobi.cygnus.com> (raw)
In-Reply-To: <3AD4A023.4E10EBB1@redhat.com>

On Wed, 11 Apr 2001, Fernando Nasser wrote:

> No, it is correct.  It may require some extra comment, as I can conclude
> from your message ;-)

Note that I said "not _quite_ correct", not entirely correct.

> That is intentional.  It is another variable, with the same name but
> nevertheless another one.  The blue thing is for when the _value_ of a
> variable changes.

I can buy that. My bad.

> > +            if {[lindex $UpdatedList 0] == $var} {
> > +              debug "Type changed."
> > 
> > This means that ANY root variable whose value changes is going to have
> > its offspring deleted and the variable (if it has any displayed children)
> > will also be collapsed. So if I change the value of a struct* which I was
> > viewing, all the children go away.
> > 
> 
> Nope.  The only root variable that will ever show up in there is a new
> incarnation of a type_changed varobj -- which will have the same name.

Try this:

int
main (int argc, char *argv[])
{
  int i;

  i++;
  i++;
  i++;
  exit (0);
}

As you step over the "i++;" in Insight, the value of i changes but the 
variable is never highlighted. 

Let's say that the variable "i" is in the variable object "var6". Now, 
when you do "var6 update", it returns either an empty list if its value 
has not changed since the last check OR it returns "var6" if its value 
has changed. Or look in the debug window and it prints "Type changed" all 
the time.

Keith

  reply	other threads:[~2001-04-11 11:31 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-04-11 11:14 Keith Seitz
2001-04-11 11:23 ` Fernando Nasser
2001-04-11 11:31   ` Keith Seitz [this message]
2001-04-11 11:58     ` Fernando Nasser
2001-04-11 12:13       ` Keith Seitz
2001-04-11 12:27         ` Lewin A.R.W. Edwards
2001-05-07 17:33         ` Fernando Nasser
2001-05-10 17:25           ` Keith Seitz

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=Pine.SOL.3.91.1010411112403.14548X-100000@ryobi.cygnus.com \
    --to=keiths@cygnus.com \
    --cc=fnasser@redhat.com \
    --cc=insight@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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).