Re: [PATCH v5 23/25] Document new "x" and "print" memory tagging extensions

Simon Marchi via Gdb-patches
2021-02-05T05:04:47Z

On 2021-01-27 3:21 p.m., Luis Machado via Gdb-patches wrote:
> Document the changes to the "print" and "x" commands to support memory
> tagging.
>
> gdb/doc/ChangeLog:
>
> YYYY-MM-DD Luis Machado <luis.machado@linaro.org>
>
> * gdb.texinfo (Data): Document memory tagging changes to the "print"
> command.
> (Examining Memory): Document memory tagging changes to the "x"
> command.
> (Memory Tagging): Update with more information on changes to the "x"
> and "print" commands.
> ---
> gdb/doc/gdb.texinfo | 28 +++++++++++++++++++++++++---
> 1 file changed, 25 insertions(+), 3 deletions(-)
>
> diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo
> index f751bdf4d3..5b21991b10 100644
> --- a/gdb/doc/gdb.texinfo
> +++ b/gdb/doc/gdb.texinfo
> @@ -9935,6 +9935,10 @@ If you omit @var{expr}, @value{GDBN} displays the last value again (from the
> conveniently inspect the same value in an alternative format.
> @end table
>
> +If the architecture supports memory tagging, the @code{print} command will
> +display pointer/memory tag mismatches if what is being printed is a pointer
> +or reference type. @xref{Memory Tagging}.

Is there a section that documents the print options, to document "set
print memory-tag-violations" and "print -memory-tag-violations"?

Simon