This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] gdb: remove packet size limit
- From: Gary Benson <gbenson at redhat dot com>
- To: Pedro Alves <palves at redhat dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Wed, 26 Aug 2015 09:43:56 +0100
- Subject: Re: [PATCH] gdb: remove packet size limit
- Authentication-results: sourceware.org; auth=none
- References: <1440541673-31794-1-git-send-email-palves at redhat dot com>
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/