From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23509 invoked by alias); 19 Aug 2009 19:13:56 -0000 Received: (qmail 23496 invoked by uid 22791); 19 Aug 2009 19:13:56 -0000 X-SWARE-Spam-Status: No, hits=0.2 required=5.0 tests=AWL,BAYES_00,BOTNET,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; Wed, 19 Aug 2009 19:13:49 +0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254] (may be forged)) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n7JJDkU5013403 for ; Wed, 19 Aug 2009 15:13:46 -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 n7JJDkSP000464 for ; Wed, 19 Aug 2009 15:13:46 -0400 Received: from opsy.redhat.com (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id n7JJDkai007025; Wed, 19 Aug 2009 15:13:46 -0400 Received: by opsy.redhat.com (Postfix, from userid 500) id 939973782EF; Wed, 19 Aug 2009 13:13:45 -0600 (MDT) From: Tom Tromey To: Vladimir Prus Cc: gdb@sources.redhat.com Subject: Re: MI & pretty-printing References: <200907132142.18043.vladimir@codesourcery.com> <200908180956.33876.vladimir@codesourcery.com> <200908191012.02517.vladimir@codesourcery.com> Reply-To: Tom Tromey Date: Wed, 19 Aug 2009 19:50:00 -0000 In-Reply-To: <200908191012.02517.vladimir@codesourcery.com> (Vladimir Prus's message of "Wed, 19 Aug 2009 10:12:02 +0400") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (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-08/txt/msg00178.txt.bz2 >>>>> "Volodya" == Vladimir Prus writes: Tom> I hesitate to change this because it isn't clear to me that "{...}" Tom> is a universally good choice for all GUIs and all printers. I'm reconsidering this. When would the immediate value of a varobj with children be of interest? It certainly doesn't seem to be for non-pretty-printed varobjs. Volodya> Do we have a mechanism how pretty-printer can use different Volodya> string rendering for MI and CLI? Not at present. We could add one, of course, but I have been trying to push the current simple design as far as it would go. Partly this is just stubbornness but also I do think that simplicity has some intrinsic virtue, at least when you can get away with it. Volodya> And {...} seems like the most conservative thing Volodya> possible. Then, if we run into type that both have children and Volodya> have string rendering that makes sense in MI, we can introduce Volodya> some solution? Yeah. I'll do this. Volodya> Well, I guess for consistency, it's best to either drop numchild from Volodya> incremental -var-list-children response, or make it report the number Volodya> of children that is actually contained in the 'children' field. Ok, will do. Tom