From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14432 invoked by alias); 15 Nov 2006 14:55:24 -0000 Received: (qmail 14423 invoked by uid 22791); 15 Nov 2006 14:55:23 -0000 X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (65.74.133.4) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 15 Nov 2006 14:55:12 +0000 Received: (qmail 32531 invoked from network); 15 Nov 2006 14:55:11 -0000 Received: from unknown (HELO ?172.16.64.38?) (vladimir@127.0.0.2) by mail.codesourcery.com with ESMTPA; 15 Nov 2006 14:55:11 -0000 From: Vladimir Prus To: Daniel Jacobowitz Subject: Re: MI: -var-list-children --simple-values Date: Wed, 15 Nov 2006 14:55:00 -0000 User-Agent: KMail/1.9.1 Cc: Nick Roberts , gdb-patches@sources.redhat.com References: <200611151250.11654.vladimir@codesourcery.com> <200611151450.19852.vladimir@codesourcery.com> <20061115144343.GA25165@nevyn.them.org> In-Reply-To: <20061115144343.GA25165@nevyn.them.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200611151755.02301.vladimir@codesourcery.com> 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/msg00125.txt.bz2 On Wednesday 15 November 2006 17:43, Daniel Jacobowitz wrote: > On Wed, Nov 15, 2006 at 02:50:19PM +0300, Vladimir Prus wrote: > > On Wednesday 15 November 2006 14:17, Nick Roberts wrote: > > > ISTR Daniel J wanted --simple-values for consistency with > > > -stack-list-locals. As it's easy to fix, I suggest doing that. > > > > There are many things that are easy to fix, but it does not mean we need > > to keep unused functionality. > > > > Perhaps Dan can comment why he really needed --simple-values. > > I felt that it was useful; I still do. 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? > Takeup of new MI features by > IDEs seems to be a very slow process, since many support the system's > installed GDB (which may be several revisions behind); reports of MI > features that don't work also seems to be a bit spotty. So, honestly, > I wouldn't read too much into it that no one noticed. It was new in > GDB 6.4. > > > > I also note > > > a mistake in the error message. Both are fixed below. > > > > I don't see any regression test for this crash. Are you going to > > provide one? > > I'd appreciate it if one of you could do that, yes. Shame on me, I > didn't write one at the time. Heh ;-) - Volodya