From: Tom Tromey <tromey@redhat.com>
To: Yao Qi <yao@codesourcery.com>
Cc: "gdb\@sourceware.org" <gdb@sourceware.org>
Subject: Re: semantics of dynamic varobj
Date: Fri, 22 Nov 2013 16:12:00 -0000 [thread overview]
Message-ID: <87eh68e7qk.fsf@fleche.redhat.com> (raw)
In-Reply-To: <528F5839.4050100@codesourcery.com> (Yao Qi's message of "Fri, 22 Nov 2013 21:12:25 +0800")
>>>>> "Yao" == Yao Qi <yao@codesourcery.com> writes:
Yao> I ask these questions because I am adding a new kind of dynamic
Yao> varobj, whose contents are provided by only available data.
There are maybe two things that suggest that a dynamic varobj is not the
way to go here.
One is that these aren't truly dynamic. They are just ordinary varobjs
where some child values are unavailable. It seems far simpler to me to
just provide an "unavailable" marker.
Second, dynamic varobjs have different semantics than ordinary ones, so
they are only enabled when the client requests them. (And, clients may
use the "python" feature to decide this, since that's the only signal
right now that they exist.)
So, would then (1) be at least conceptually tied to Python (you could
add a new feature I suppose) and (2) have to decide what to do if the
feature is not enabled... which goes back to the idea of just treating
these as normal varobjs.
Tom
next prev parent reply other threads:[~2013-11-22 16:12 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-22 13:14 Yao Qi
2013-11-22 13:28 ` Pedro Alves
2013-11-22 16:12 ` Tom Tromey [this message]
2013-11-22 16:37 ` Pedro Alves
2013-11-22 17:01 ` Tom Tromey
2013-11-23 13:34 ` Yao Qi
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=87eh68e7qk.fsf@fleche.redhat.com \
--to=tromey@redhat.com \
--cc=gdb@sourceware.org \
--cc=yao@codesourcery.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