[PATCH][PR gdb/24052] Implement 'set print zero-values on|off'
Philippe Waroquiers
philippe.waroquiers@skynet.be
Wed Apr 29 16:41:21 GMT 2020
On Wed, 2020-04-29 at 12:43 +0000, Hannes Domani via Gdb-patches wrote:
> Am Mittwoch, 29. April 2020, 14:14:33 MESZ hat Philippe Waroquiers <philippe.waroquiers@skynet.be> Folgendes geschrieben:
>
> > Nice idea.
>
> I also thought this was a good idea when I saw the PR.
>
>
> > Could that be applied on array also ?
> > (as for arrays containing zeroes here and there, -repeats 2 or 3
> > does not bring much in space gained).
>
> I guess it would be possible, if you don't care that the array indexes don't
> match what you see once there are some missing entries.
>
> You don't have that problem with structs, because each entry has a name.
>
> Or maybe we show the array-index after each missing entry?
Maybe, or user responsibility/choice to use -array-indexes or not.
Philippe
More information about the Gdb-patches
mailing list