From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27743 invoked by alias); 15 Nov 2006 15:09:54 -0000 Received: (qmail 27734 invoked by uid 22791); 15 Nov 2006 15:09:54 -0000 X-Spam-Check-By: sourceware.org Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.31.1) with ESMTP; Wed, 15 Nov 2006 15:09:44 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1GkMOS-0006tB-A1; Wed, 15 Nov 2006 10:09:40 -0500 Date: Wed, 15 Nov 2006 15:09:00 -0000 From: Daniel Jacobowitz To: Vladimir Prus Cc: Nick Roberts , gdb-patches@sources.redhat.com Subject: Re: MI: -var-list-children --simple-values Message-ID: <20061115150940.GA26174@nevyn.them.org> Mail-Followup-To: Vladimir Prus , Nick Roberts , gdb-patches@sources.redhat.com References: <200611151250.11654.vladimir@codesourcery.com> <200611151450.19852.vladimir@codesourcery.com> <20061115144343.GA25165@nevyn.them.org> <200611151755.02301.vladimir@codesourcery.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200611151755.02301.vladimir@codesourcery.com> User-Agent: Mutt/1.5.13 (2006-08-11) X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2006-11/txt/msg00126.txt.bz2 On Wed, Nov 15, 2006 at 05:55:02PM +0300, Vladimir Prus wrote: > Why? Especially, why it's better than --all-values. Note that --simple-values > only don't print values of arrays, structures and unions, and if you check > c_value_of_variable, you'll see that for structures just a literal string is > returned, while for array very trivial formatting operation is used. > > In other words, --all-values do not involve any complex processing, reading > data from the target, or anything. What are we trying to save by > adding --simple-values? But the result of --all-values where it differs from --simple-values is probably not used. I've never used an IDE that printed out the collapsed value of a struct; instead it wants an expandable item for each struct member. --simple-values is for things without children. I didn't invent --simple-values though, I just added it to -var-update. Nick added it to -stack-list-locals on 20-Jan-2004. Ah here: http://sourceware.org/ml/gdb/2003-11/msg00055.html -- Daniel Jacobowitz CodeSourcery