Re: [RFC/RFA] print arrays with indexes

Jim Blandy
2005-09-07T20:39:31Z

Daniel Jacobowitz <drow@false.org> writes:
> I've got no strong opinions on this either way. Thresholds seem
> complicated as a UI.

The printing code seems to have a few thresholds --- 'show print
repeats', 'show print elements', maybe others. It's a waste of time
when they hide or obscure information I need, and I have to go in and
change them. But I don't see this one having that effect; both the
labeled and unlabeled forms show all the information there is. It's
just a question of whether it's worth avoiding stuff like:

(gdb) print pipe
$2 = { [0] = 6, [1] = 7 }
(gdb)

in favor of:

(gdb) print pipe
$2 = { 6, 7 }
(gdb)