From: nickrob@snap.net.nz (Nick Roberts)
To: "Marc Khouzam" <marc.khouzam@ericsson.com>
Cc: <gdb-patches@sourceware.org>
Subject: [Patch] [MI] Out-of-scope varObjects no longer trigger a var-update change
Date: Fri, 01 May 2009 12:00:00 -0000 [thread overview]
Message-ID: <18938.58435.813818.170271@totara.tehura.co.nz> (raw)
In-Reply-To: <6D19CA8D71C89C43A057926FE0D4ADAA0759C401@ecamlmw720.eamcs.ericsson.se>
> I believe a small bug slipped in the refactoring of varobj_update
> interface from:
> http://sourceware.org/ml/gdb-patches/2008-05/msg00106.html
>
> From what I see, varobj that are not in scope don't get flagged
> as changed, because nothing was being pushed on the result vector.
> The attached patch fixes this.
I'm not sure that I see this. If the variable goes out of scope then, as the
comment says, then value_of_root returns NULL. But (*varp)->value is not NULL,
so install_new_value returns 1 and r.changed is set to 1 and r gets pushed onto
the result vector.
> The MI part of the testsuite passed ok.
> I have an test to trigger the bug, if you care to see it.
Yes, please post that. The current testsuite covers varobjs that go out of
scope. If it is a regression then there needs to be a test that covers this
mode of failure in any case.
--
Nick http://www.inet.net.nz/~nickrob
next prev parent reply other threads:[~2009-05-01 12:00 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-28 20:04 Marc Khouzam
2009-05-01 12:00 ` Nick Roberts [this message]
2009-05-01 13:53 ` Marc Khouzam
2009-05-02 23:09 ` Nick Roberts
2009-05-04 17:26 ` Marc Khouzam
2009-05-05 11:20 ` Nick Roberts
2009-05-04 17:54 ` Vladimir Prus
2009-05-04 17:56 ` Marc Khouzam
2009-05-07 19:28 ` Marc Khouzam
2009-05-17 7:14 ` Vladimir Prus
2009-05-20 14:32 ` Marc Khouzam
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=18938.58435.813818.170271@totara.tehura.co.nz \
--to=nickrob@snap.net.nz \
--cc=gdb-patches@sourceware.org \
--cc=marc.khouzam@ericsson.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