From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18112 invoked by alias); 11 Feb 2010 09:28:52 -0000 Received: (qmail 18100 invoked by uid 22791); 11 Feb 2010 09:28:51 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00,SPF_PASS X-Spam-Check-By: sourceware.org Received: from ahmler3.mail.eds.com (HELO ahmler3.mail.eds.com) (192.85.154.74) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 11 Feb 2010 09:28:48 +0000 Received: from ahmlir1.mail.eds.com (ahmlir1-2.mail.eds.com [192.85.154.152]) by ahmler3.mail.eds.com (8.14.2/8.13.8) with ESMTP id o1B9SkL7026492 for ; Thu, 11 Feb 2010 04:28:46 -0500 Received: from ahmlir1.mail.eds.com (localhost.localdomain [127.0.0.1]) by ahmlir1.mail.eds.com (8.14.2/8.12.10) with ESMTP id o1B9SYVV032270 for ; Thu, 11 Feb 2010 04:28:34 -0500 Received: from usplmvpfe001.ent.rt.verigy.net ([192.100.40.4]) by ahmlir1.mail.eds.com (8.14.2/8.12.10) with ESMTP id o1B9SXxG032250 for ; Thu, 11 Feb 2010 04:28:34 -0500 X-EDSINT-Source-Ip: 192.100.40.4 Received: from usplmvpbe001.ent.rt.verigy.net ([10.16.58.34]) by usplmvpfe001.ent.rt.verigy.net with Microsoft SMTPSVC(6.0.3790.3959); Thu, 11 Feb 2010 03:28:33 -0600 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: Obtaining number of children of a dynamic varobj Date: Thu, 11 Feb 2010 09:28:00 -0000 Message-ID: <58596C4646708B4BB990C4483997333001B639E9@usplmvpbe001.ent.rt.verigy.net> In-Reply-To: <27542787.post@talk.nabble.com> From: "Elmenthaler, Jens" To: X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2010-02/txt/msg00066.txt.bz2 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 to= o expensive. Quite reasonable sofar. Nevertheless, I have the problem that I have to kno= w the number of children a dynamic varobj has. The only way I see to obtain the number of children, however, is to call -v= ar-list-children without a range specification. I can omit the values to be= transferred. Does that have the same scalability issues, after all it stil= l creates a varobj for each child? Jens.