This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] gdb: remove packet size limit


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]