Re: [PATCH v2 2/3] gdb: Add per-remote target variables for memory read and write config

Eli Zaretskii via Gdb-patches
2022-03-29T13:49:19Z

> Date: Tue, 29 Mar 2022 15:11:57 +0200
> From: Christina Schimpe via Gdb-patches <gdb-patches@sourceware.org>
>
> diff --git a/gdb/NEWS b/gdb/NEWS
> index 7740162d3e..aa704d076d 100644
> --- a/gdb/NEWS
> +++ b/gdb/NEWS
> @@ -16,6 +16,18 @@
> the configuration of the currently selected target. If no remote target is
> selected, the default configuration for future connections is shown.
>
> + The individual packet sizes can be configured and shown using the commands
> + ** 'set remote memory-read-packet-size (number of bytes|fixed|limit)'
> + ** 'set remote memory-write-packet-size (number of bytes|fixed|limit)'
> + ** 'show remote memory-read-packet-size'
> + ** 'show remote memory-write-packet-size'.
> +
> + The configuration of the packet itself, as well as the size of a memory-read
> + or memory-write packet, applies to the currently selected target (if
> + available) and future remote connections. The "show remote" commands print
> + the configuration of the currently selected target. If no remote target is
> + selected, the default configuration for future connections is shown.
> +
> * GDB now supports hardware watchpoints on FreeBSD/Aarch64.
>
> * Remove support for building against Python 2, it is now only possible to

This part of the patch is OK.

> +@cindex Configuration of the remote packet size

Index entries should all begin with a lower-case letter, so that their
sorting (when the Info manual is produced) is not affected by the
current locale.

The documentation parts of the patch are okay with the above not
fixed.

Thanks.