From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7274 invoked by alias); 30 Jun 2009 09:42:51 -0000 Received: (qmail 7264 invoked by uid 22791); 30 Jun 2009 09:42:50 -0000 X-SWARE-Spam-Status: No, hits=-3.4 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from main.gmane.org (HELO ciao.gmane.org) (80.91.229.2) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 30 Jun 2009 09:42:38 +0000 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1MLZrH-0002jk-RX for gdb@sources.redhat.com; Tue, 30 Jun 2009 09:42:35 +0000 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 ; Tue, 30 Jun 2009 09:42:35 +0000 Received: from vladimir by h86-62-88-129.ln.rinet.ru with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 30 Jun 2009 09:42:35 +0000 To: gdb@sources.redhat.com From: Vladimir Prus Subject: Re: -stack-list-locals and children Date: Tue, 30 Jun 2009 09:42:00 -0000 Message-ID: References: <629542d40906281203o3601025at573704e36ee80565@mail.gmail.com> <200906291131.57895.andre.poenitz@nokia.com> <200906291213.04817.andre.poenitz@nokia.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8Bit 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-06/txt/msg00324.txt.bz2 André Pönitz wrote: > On Monday 29 June 2009 11:39:27 Vladimir Prus wrote: >> > One point was always to reduce the number of roundtrips before >> > being able to display the variable view. I think that's a valid point >> > also from a KDevelop angle of view. >> >> Right, but how variable type is helping? Is it used *just* to populate >> the "type" field in variable view? Or is it also involved in QtCreator's >> pretty-printing mechanisms somehow? > > Right. They are also primary information for the current incarnation of > Qt Creator's pretty-printing. > > However I don't want center the argumentation around the needs of > a specific IDE though if there is a "cross-IDE" reason. And reducing > roundtrip count should be fairly cross-IDE ;-} To summarise yesterday's IRC discussion and today's commits: 1. -stack-list-locals --simple-values does print type. 2. -stack-list-arguments did not accept --simple-values, but instead accepted a numerical '2' to mean the same. I've now checked in a patch to make it accept --simple-values as well. 3. Making -stack-list-locals and -stack-list-arguments always print the type is a simple -- does it seem desirable? I would say yes, unless we expect frontend to do some other mechanism to discover types of complex variables. - Volodya