Re: [PATCH v2] Add new 'print nibbles' feature

Eli Zaretskii via Gdb-patches
2020-12-10T14:28:44Z

> Date: Thu, 10 Dec 2020 22:15:15 +0800
> From: Enze Li via Gdb-patches <gdb-patches@sourceware.org>
>
> gdb/doc/ChangeLog:
> 2020-12-10 Enze Li <lienze2010@hotmail.com>
>
> * gdb.texinfo: Document 'print nibbles'.

This should mention the node in which you made the chnanges (in
parentheses, as if the node were a function).

> +set print nibbles [on|off]
> +show print nibbles
> + This controls whether the 'print/t' command will display the binary
> + value in groups, and each group has four bits. The default is 'off'.

This is fine, but let's please mention the word "nibbles" in this.
For example:

show print nibbles
This controls whether the 'print/t' command will display binary values
in groups of four bits, known as "nibbles". The default is 'off'.

> +@item -nibbles [@code{on}|@code{off}]
> +Set whether to print binary values in groups of four bits.
> +Related setting: @ref{set print nibbles}.

Likewise here.

> +@anchor{set print nibbles}
> +@item set print nibbles
> +@itemx set print nibbles on
> +Print binary values in groups of four bits when using the print command of
> +@value{GDBN} with the option @samp{/t}. For example, this is what it
> +looks like with @code{set print nibbles on}:

And here.

Thanks.