From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26989 invoked by alias); 6 Sep 2005 21:45:16 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 26964 invoked by uid 22791); 6 Sep 2005 21:45:11 -0000 Received: from nat-pool-rdu.redhat.com (HELO devserv.devel.redhat.com) (66.187.233.202) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Tue, 06 Sep 2005 21:45:11 +0000 Received: from alligator.red-bean.com.redhat.com (vpn26-14.sfbay.redhat.com [172.16.26.14]) by devserv.devel.redhat.com (8.12.11/8.12.11) with ESMTP id j86Lj2CS001141; Tue, 6 Sep 2005 17:45:03 -0400 To: Joel Brobecker Cc: gdb-patches@sources.redhat.com Subject: Re: [RFC/RFA] print arrays with indexes References: <20050906202018.GC1153@adacore.com> From: Jim Blandy Date: Tue, 06 Sep 2005 21:45:00 -0000 In-Reply-To: <20050906202018.GC1153@adacore.com> (Joel Brobecker's message of "Tue, 6 Sep 2005 13:20:18 -0700") Message-ID: User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2005-09/txt/msg00035.txt.bz2 Joel Brobecker writes: > So, the suggestion is to have the feature being controled by a set/show > command; I suggest: > > (gdb) set/show print array-indexes > > With a default of "off", to preserve the current behavior. How about a size threshold, below which the indexes would be omitted? It could default to whatever size it becomes hard to see by hand --- seven or ten or so.