Re: [RFC/RFA] print arrays with indexes

Jim Blandy
2005-09-06T21:45:16Z

Joel Brobecker <brobecker@adacore.com> 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.