From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26781 invoked by alias); 10 Jul 2009 16:25:18 -0000 Received: (qmail 26762 invoked by uid 22791); 10 Jul 2009 16:25:17 -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; Fri, 10 Jul 2009 16:25:10 +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 n6AGP8nE029440 for ; Fri, 10 Jul 2009 12:25:08 -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 n6AGP8uV015411 for ; Fri, 10 Jul 2009 12:25:08 -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 n6AGP7Px020573; Fri, 10 Jul 2009 12:25:07 -0400 Received: by opsy.redhat.com (Postfix, from userid 500) id CE7A1C88051; Fri, 10 Jul 2009 10:25:06 -0600 (MDT) To: Vladimir Prus Cc: gdb@sources.redhat.com Subject: Re: Robustifying pretty-printers References: <200906131411.34204.vladimir@codesourcery.com> <200907092119.55363.vladimir@codesourcery.com> <200907101012.32112.vladimir@codesourcery.com> From: Tom Tromey Reply-To: Tom Tromey Date: Fri, 10 Jul 2009 16:25:00 -0000 In-Reply-To: <200907101012.32112.vladimir@codesourcery.com> (Vladimir Prus's message of "Fri\, 10 Jul 2009 10\:12\:31 +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/msg00071.txt.bz2 >>>>> "Vladimir" == Vladimir Prus writes: Vladimir> The primary reason is that if frontend wants to fetch more data, it's Vladimir> natural to issue: Vladimir> -var-list-children 10 20 Vladimir> than Vladimir> -var-set-child-range 0 20 Vladimir> -var-list-children Vladimir> and then filter out the first 10 elements FE already has. I don't understand. The FE would do this: -var-set-child-range 10 20 -var-list-children I suppose with the list-children approach we can have resetting be done like: -var-list-children foo -1 -1 Another question is whether changing the visualizer ought to reset the selected child range. I'm not sure it matters; I assume a FE will do this itself. Tom