From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8867 invoked by alias); 9 Jul 2009 19:14:00 -0000 Received: (qmail 8859 invoked by uid 22791); 9 Jul 2009 19:14:00 -0000 X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 09 Jul 2009 19:13:51 +0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n69JDnje031127 for ; Thu, 9 Jul 2009 15:13:49 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id n69JDmPj009703 for ; Thu, 9 Jul 2009 15:13:48 -0400 Received: from opsy.redhat.com (vpn-225-106.phx2.redhat.com [10.3.225.106]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id n69JDlox013575; Thu, 9 Jul 2009 15:13:48 -0400 Received: by opsy.redhat.com (Postfix, from userid 500) id E4913508288; Thu, 9 Jul 2009 13:13:46 -0600 (MDT) To: Vladimir Prus Cc: gdb@sources.redhat.com Subject: Re: Robustifying pretty-printers References: <200906131411.34204.vladimir@codesourcery.com> <200906161222.37208.vladimir@codesourcery.com> <200907092119.55363.vladimir@codesourcery.com> From: Tom Tromey Reply-To: Tom Tromey Date: Thu, 09 Jul 2009 19:14:00 -0000 In-Reply-To: <200907092119.55363.vladimir@codesourcery.com> (Vladimir Prus's message of "Thu\, 9 Jul 2009 21\:19\:55 +0400") Message-ID: User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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: 2009-07/txt/msg00066.txt.bz2 >>>>> "Vladimir" == Vladimir Prus writes: Vladimir> There's also a question how frontend will know that there Vladimir> are more children -- so that it can show "..." in the tree Vladimir> view, or something. The best approach would be for GDB to Vladimir> fetch one children more, and then use emit 'has-more' field Vladimir> in -var-list-children output. The other alternative is for Vladimir> frontend to fetch one more item than it wishes to display -- Vladimir> but such a logic has to be repeated for each Vladimir> frontend. Anyway, this aspect seems independent from others, Vladimir> so I can do it myself after you are done with the code Vladimir> changes. I don't mind doing it. I was thinking of a 'dynamic' attribute, to let the FE know that the numchild attribute cannot be believed. But, I think I like your approach better. Vladimir> We probably need a way to explicitly reset the Vladimir> 'remembemered' limit on elements, so that frontend is not Vladimir> forced to display 20 elements forever. I couldn't find a reason why you wanted the range on -var-list-children and not as a separate command. Could you explain why? The reason I ask is that this issue was already solved in the old patch: you could use -var-set-child-range to set and also unset the range. Tom