This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFC/RFA] print arrays with indexes


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)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]