[PATCH v2] gdb: split array and string limiting options

Maciej W. Rozycki macro@embecosm.com
Tue Jan 4 23:15:57 GMT 2022


On Wed, 15 Dec 2021, Andrew Burgess wrote:

> > Index: src/gdb/NEWS
> > ===================================================================
> > --- src.orig/gdb/NEWS
> > +++ src/gdb/NEWS
> > @@ -53,6 +53,24 @@ maint packet
> >    as escaped hex, e.g. \x?? where '??' is replaces with the value of
> >    the non-printable character.
> >  
> > +set print characters LIMIT
> > +show print characters
> > +print -characters LIMIT
> > +  This new setting is like 'set print elements', but controls how many
> > +  characters of a string are printed.  This functionality used to be
> > +  covered by 'set print elements', but is now a separate setting.
> > +  LIMIT can be set to 'unlimited' to print all characters of a string.
> > +  The default value for LIMIT is 200.
> > +
> > +* Changed commands
> > +
> > +set print elements LIMIT
> > +show print elements
> > +print -elements LIMIT
> > +  This setting no longer affects how many characters of a string are
> > +  printed, instead the new 'set print characters' setting should be
> > +  used.
> > +
> >  * Python API
> 
> I suspect something went wrong with the rebase here.  The 'set print
> characters' block should be under 'New commands', and the 'set print
> elements' block should, indeed, be under 'Changed commands'.  But, I
> think the 'Changed commands' you're adding here is now the second such
> title for the current release of GDB.

 Indeed, good catch!  Thank you, I have posted v3 with this piece fixed 
only.

  Maciej


More information about the Gdb-patches mailing list