Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Andrew Cagney <ac131313@redhat.com>
To: Keith Seitz <keiths@redhat.com>
Cc: gdb@sources.redhat.com
Subject: Re: MI questions from eclipse.org
Date: Fri, 27 Sep 2002 11:17:00 -0000	[thread overview]
Message-ID: <3D94A0A4.4010001@redhat.com> (raw)
In-Reply-To: <Pine.LNX.4.44.0209271059460.1515-100000@valrhona.uglyboxes.com>

> * Variable notification
>>   - assignment: Doing a -var-assign follow by a
>>     -var-update does not show any variables been change.
>>     Is this the behaviour?
> 
> 
> Yes. (Didn't I get back to you on this already? I thought I had.) Any, the 
> way varobj works, it saves a copy of GDB's internal representation for a 
> variable. When one updates the root (-var-update), it computes a new 
> "value" and compares against the old one.
> 
> When you assign a new value to a variable (and it succeeds), this new 
> "value" is saved and used for subsequent comparisons (of whether anything 
> has changed). This contrasts to how registers work, but the register stuff 
> is wrong, IMO. :-) (This happens because MI doesn't modify its "value" for 
> the register like varobj does.)
> 
> 
>>   - And on a more complex note, doing -data-write-memory
>>     to some memory and the memory was a variable object
>>     should -var-update notice this?
> 
> 
> Yes. In HEAD sources it certainly does. [Aside: In mi2, this will trigger
> an event telling you that something has changed. Unfortunately, we cannot 
> tell you WHAT changed. Only that the state of the target has changed. This 
> is necessary because there are some really goofy systems out there, like 
> those with memory-mapped registers.]

Yes.

The upper bound on the performance is the same as single step.

Andrew



      parent reply	other threads:[~2002-09-27 18:17 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-27 10:58 Keith Seitz
2002-09-27 11:14 ` Andrew Cagney
2002-09-27 11:17 ` Andrew Cagney [this message]

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=3D94A0A4.4010001@redhat.com \
    --to=ac131313@redhat.com \
    --cc=gdb@sources.redhat.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