Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* semantics of dynamic varobj
@ 2013-11-22 13:14 Yao Qi
  2013-11-22 13:28 ` Pedro Alves
  2013-11-22 16:12 ` Tom Tromey
  0 siblings, 2 replies; 6+ messages in thread
From: Yao Qi @ 2013-11-22 13:14 UTC (permalink / raw)
  To: gdb

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 (齐尧)


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2013-11-23 13:34 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-11-22 13:14 semantics of dynamic varobj Yao Qi
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox