From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29824 invoked by alias); 14 Oct 2012 17:25:37 -0000 Received: (qmail 29814 invoked by uid 22791); 14 Oct 2012 17:25:36 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00,RCVD_IN_HOSTKARMA_NO X-Spam-Check-By: sourceware.org Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 14 Oct 2012 17:25:31 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id C2BB81C7A5E; Sun, 14 Oct 2012 13:25:30 -0400 (EDT) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 2eD5j4CJa6hz; Sun, 14 Oct 2012 13:25:30 -0400 (EDT) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id 765141C7A49; Sun, 14 Oct 2012 13:25:30 -0400 (EDT) Received: by joel.gnat.com (Postfix, from userid 1000) id D6931C7D0C; Sun, 14 Oct 2012 10:25:27 -0700 (PDT) Date: Sun, 14 Oct 2012 17:25:00 -0000 From: Joel Brobecker To: Andrew Burgess Cc: "gdb-patches@sourceware.org" Subject: Re: [RFC] Change how value is shown for varobjs of type vector. Message-ID: <20121014172527.GC3050@adacore.com> References: <50631DE7.7050702@broadcom.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <50631DE7.7050702@broadcom.com> User-Agent: Mutt/1.5.21 (2010-09-15) Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2012-10/txt/msg00207.txt.bz2 > I have a patch (below) that changes the value field from the current > "[8]" to "{ 0, 0, 0, 0, 0, 0, 0, 0 }". The varobj still has 8 > children, and the top level varobj is still not editable, you have to > edit through the children. I personally do not have a strong objection to this change, but I have to admit that I am not particularly fond of the idea. I think that this issue should be handled at the front-end level (Eg. Eclipse), and in a manor that is general to all arrays. One possible suggestion would be to have the IDE detect small arrays of integrals, and in that case display them in a more convenient way right away. But perhaps it isn't easy, in which case maybe a change in GDB would make better sense. I just don't like it because it breaks a little bit the consistency of the value field. -- Joel