From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6330 invoked by alias); 5 Sep 2009 09:27:27 -0000 Received: (qmail 6316 invoked by uid 22791); 5 Sep 2009 09:27:26 -0000 X-SWARE-Spam-Status: No, hits=-2.9 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from lo.gmane.org (HELO lo.gmane.org) (80.91.229.12) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 05 Sep 2009 09:27:21 +0000 Received: from list by lo.gmane.org with local (Exim 4.50) id 1MjrYD-0000tr-7W for gdb@sources.redhat.com; Sat, 05 Sep 2009 11:27:17 +0200 Received: from h86-62-88-129.ln.rinet.ru ([86.62.88.129]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 05 Sep 2009 11:27:17 +0200 Received: from vladimir by h86-62-88-129.ln.rinet.ru with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 05 Sep 2009 11:27:17 +0200 To: gdb@sources.redhat.com From: Vladimir Prus Subject: Re: MI & pretty-printing Date: Sat, 05 Sep 2009 09:27:00 -0000 Message-ID: References: <200907132142.18043.vladimir@codesourcery.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit User-Agent: KNode/0.10.9 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: 2009-09/txt/msg00104.txt.bz2 Tom Tromey wrote: >>>>>> "Volodya" == Vladimir Prus writes: > > Volodya> On IRC, Tom and I talked about best way to support Python > Volodya> pretty-printing with MI. Here's my attempt at summarizing. > > I finally finished the first draft of this. I pushed it to the > archer-tromey-python branch today. Please give it a try; if it is all > looking ok I will extract it and push it into CVS. Tom, I have a couple of more questions: 1. Do you think it would be OK to make the has_more field always present? This will allow to simplify the frontend code a bit? For non-dynamic varobjs, it should be non-zero in var-create response if there are children. 2. Do you think it would be OK to add a special field to indicate that varobj is dynamic? For example, if I expand a regular varobj, I probably want to fetch every field, while for dynamic, I want to fetch just 10. I can implement the above myself, I think, if you don't have any disagreement. Thanks, Volodya