From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31354 invoked by alias); 16 Nov 2006 15:57:44 -0000 Received: (qmail 31302 invoked by uid 22791); 16 Nov 2006 15:57:42 -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; Thu, 16 Nov 2006 15:57:35 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1GkjcI-0003En-Bt; Thu, 16 Nov 2006 10:57:30 -0500 Date: Thu, 16 Nov 2006 15:57: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: <20061116155730.GB11539@nevyn.them.org> Mail-Followup-To: Vladimir Prus , Nick Roberts , gdb-patches@sources.redhat.com References: <200611151250.11654.vladimir@codesourcery.com> <200611151755.02301.vladimir@codesourcery.com> <20061115150940.GA26174@nevyn.them.org> <200611151929.29567.vladimir@codesourcery.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200611151929.29567.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/msg00141.txt.bz2 On Wed, Nov 15, 2006 at 07:29:28PM +0300, Vladimir Prus wrote: > This is in fact completely different change. Here's > what "-stack-list-locals --all-values" produces: > > ^done,locals=[{name="the_struct",value="{a_fr = 120, b = 333, inner_fr = > {i = 0, j = 5, k = 5}, c = 3, pad = {0 }, d = > 10, pad2 = {0 }, e = 10}"}] > > So, the difference between --all-values and --simple-values is dramatic. In > case of --var-list-children you don't get full structure printed. You won't > even have the structure *read* (with my laziness patch, that is). > > So, while --simple-values might be reasonable for -stack-list-locals, it's not > all that needed for -var-list-children. Hmm. I didn't realize that one use of --all-values printed out structure contents and the other only "{...}" - I'm quite surprised. I guess --simple-values and --all-values aren't so different then for the varobj commands :-( -- Daniel Jacobowitz CodeSourcery