From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2864 invoked by alias); 10 Jul 2009 16:40:44 -0000 Received: (qmail 2855 invoked by uid 22791); 10 Jul 2009 16:40:42 -0000 X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL,BAYES_00,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (65.74.133.4) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 10 Jul 2009 16:40:35 +0000 Received: (qmail 28572 invoked from network); 10 Jul 2009 16:40:34 -0000 Received: from unknown (HELO wind.localnet) (vladimir@127.0.0.2) by mail.codesourcery.com with ESMTPA; 10 Jul 2009 16:40:34 -0000 From: Vladimir Prus To: Tom Tromey , gdb@sources.redhat.com Subject: Re: Robustifying pretty-printers Date: Fri, 10 Jul 2009 16:40:00 -0000 User-Agent: KMail/1.11.90 (Linux/2.6.24-24-generic; KDE/4.2.90; i686; svn-979530; 2009-06-10) References: <200906131411.34204.vladimir@codesourcery.com> <200907101012.32112.vladimir@codesourcery.com> In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <200907102040.34371.vladimir@codesourcery.com> 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/msg00072.txt.bz2 On Friday 10 July 2009 Tom Tromey wrote: > >>>>> "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 And what children with -var-update reevaluate? From 10 to 20? Or from 0 to 20? If the former, it's not very useful. If the latter, then it appears that low boundary is only used for -var-list-children. Maybe, it's most useful to decouple setting the range for -var-update and getting specific children. So, if frontend wants more children now, it will do: -var-list-children 10 20 and if it wishes for 20 children to be fetched from now on, it will explicitly do: -var-set-child-limit 20 Note that there's only upper limit here, since it looks like no other command but -var-list-children even need lower limit. > 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. Probably so. - Volodya