From: Yao Qi <yao@codesourcery.com>
To: "gdb@sourceware.org" <gdb@sourceware.org>
Subject: semantics of dynamic varobj
Date: Fri, 22 Nov 2013 13:14:00 -0000 [thread overview]
Message-ID: <528F5839.4050100@codesourcery.com> (raw)
Nowadays, if a varobj's contents are provided by pretty-printer, it is
called dynamic varobj. However, it is unclear to me what is a dynamic
varobj? What is the "dynamic" part of dynamic varobj? the children?
IIUC, the children of dynamic varobj vary. That is why returned
attributed 'numchild' of -var-create is "not necessarily reliable", right?
I ask these questions because I am adding a new kind of dynamic varobj,
whose contents are provided by only available data. For example,
struct foo
{
int a, b, c;
};
struct foo foo;
foo.a and foo.c is collected in traceframe #1, while foo.b is collected
in traceframe #2. We create a varobj foo for variable foo, if
traceframe is #1, foo has two children (foo.a and foo.c), if traceframe
is #2, foo has one child (foo.b). IMO, varobj foo behaves like a
dynamic varobj.
--
Yao (é½å°§)
next reply other threads:[~2013-11-22 13:14 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-22 13:14 Yao Qi [this message]
2013-11-22 13:28 ` Pedro Alves
2013-11-22 16:12 ` Tom Tromey
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=528F5839.4050100@codesourcery.com \
--to=yao@codesourcery.com \
--cc=gdb@sourceware.org \
/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