[PATCH] gdb: remove packet size limit
Gary Benson
gbenson@redhat.com
Wed Aug 26 08:44:00 GMT 2015
Pedro Alves wrote:
> The remote packet buffer size is currently capped to 16384 mostly for
> historical reasons, related to use of alloca. Stop using alloca and
> remove the limitation.
Nice.
> diff --git a/gdb/remote.c b/gdb/remote.c
> index e019277..e00e67a 100644
> --- a/gdb/remote.c
> +++ b/gdb/remote.c
> @@ -920,6 +920,16 @@ struct memory_packet_config
> int fixed_p;
> };
>
> +/* The default max memory-write-packet-size. The 16k is historical.
> + (It came from older GDB's using alloca for buffers and the
> + knowledge (folk law?) that some hosts don't cope very well with
It's "folklore".
Thanks,
Gary
--
http://gbenson.net/
More information about the Gdb-patches
mailing list