[PATCH v2] [gdb/mi] Don't treat references to compound values as "simple".

Eli Zaretskii eliz@gnu.org
Thu Sep 8 14:07:54 GMT 2022


> From: Gareth Rees <grees@undo.io>
> Date: Thu, 8 Sep 2022 14:58:22 +0100
> Cc: gdb-patches@sourceware.org
> 
> > Isn't it easier to say "only if the value is a scalar"?
> 
> I deliberately echoed the wording used in the documentation for
> '-stack-list-arguments' and similar commands, which uses the formula
> "if it is 2 or --simple-values, print the name, type and value for
> simple data types, and the name and type for arrays, structures and
> unions."
> 
> But you are right that this concept corresponds to the 'scalars'
> arguments to 'set print frame-arguments'. But then should I update the
> documentation for '-stack-list-arguments' to match?

It would be nice, yes.  But you don't have to, it could be left for a
separate changeset.


More information about the Gdb-patches mailing list