Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: "Elmenthaler, Jens" <jens.elmenthaler@verigy.com>
To: <gdb@sourceware.org>
Subject: Obtaining number of children of a dynamic varobj
Date: Thu, 11 Feb 2010 09:28:00 -0000	[thread overview]
Message-ID: <58596C4646708B4BB990C4483997333001B639E9@usplmvpbe001.ent.rt.verigy.net> (raw)
In-Reply-To: <27542787.post@talk.nabble.com>

Hi,

Trying to enable the python pretty printers in the Eclipse CDT, a question about the MI API for varobjs arose.

If I read the documentation correctly, I should not call -var-list-children without the range of children, because in general I should assume that the varobj has a huge number of children and fetching them all is potential too expensive.

Quite reasonable sofar. Nevertheless, I have the problem that I have to know the number of children a dynamic varobj has.

The only way I see to obtain the number of children, however, is to call -var-list-children without a range specification. I can omit the values to be transferred. Does that have the same scalability issues, after all it still creates a varobj for each child?

Jens.


  reply	other threads:[~2010-02-11  9:28 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-10 17:38 GDB steping into STL Headers mweglicki8208
2010-02-11  2:26 ` Hui Zhu
2010-02-11  6:22 ` mweglicki8208
2010-02-11  9:28   ` Elmenthaler, Jens [this message]
2010-02-11 17:23     ` Obtaining number of children of a dynamic varobj Vladimir Prus
2010-02-11 17:56   ` GDB steping into STL Headers Tom Tromey
2010-02-11 19:03     ` Jim Ingham
2010-02-11 19:09       ` Daniel Jacobowitz
2010-02-11 19:12         ` Jim Ingham
2010-02-12  9:32           ` mweglicki8208
2010-02-12 10:43             ` Christophe-Marie Duquesne

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=58596C4646708B4BB990C4483997333001B639E9@usplmvpbe001.ent.rt.verigy.net \
    --to=jens.elmenthaler@verigy.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