openocd/src/server
Philipp Wagner 4b0477abc1 tcl_server: Support line buffers up to 4M (v3)
Currently, the maximum size of a command sent to the TCL server is
4k. This patch increases this limit up to 4M.

Reasoning:
To get high-speed JTAG data transfers, I'm using a very long shift
register. This reduces the overhead of the state changes, as well as the
latency due to the common USB adapter transfers considerably. In order
to submit those long DRSCAN commands to OpenOCD over the TCL/TCL
interface, long TCL command lines are required. This is enabled by this
patch.

v3:
Address review comments. Drop line instead of connection when realloc()
fails.

Changes in v2 of this patch:
The line buffer is allocated dynamically to avoid an OpenOCD memory
overhead if the large buffers are not used. The buffer starts at 4K and
increases exponentially up to 1M, and then linearly in 1M increments up
to 4M.

Change-Id: Iecaef6a56ed5e18e9de4d912a514031ea78fa3bd
Signed-off-by: Philipp Wagner <philipp.wagner@tum.de>
Reviewed-on: http://openocd.zylin.com/2837
Tested-by: jenkins
Reviewed-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
2015-09-30 22:01:00 +01:00
..
gdb_server.c gdb_server: Add check for malloc fail 2015-08-06 13:16:17 +01:00
gdb_server.h update files to correct FSF address 2013-06-05 19:52:42 +00:00
Makefile.am ecosboard: delete bit-rotted eCos code 2012-03-13 19:11:11 +00:00
server_stubs.c update files to correct FSF address 2013-06-05 19:52:42 +00:00
server.c server: remove connection limit from tcl and telnet servers 2015-09-28 08:01:02 +01:00
server.h server: remove connection limit from tcl and telnet servers 2015-09-28 08:01:02 +01:00
startup.tcl Fix a bunch of typos. 2011-03-17 07:25:25 +01:00
tcl_server.c tcl_server: Support line buffers up to 4M (v3) 2015-09-30 22:01:00 +01:00
tcl_server.h update files to correct FSF address 2013-06-05 19:52:42 +00:00
telnet_server.c server: remove connection limit from tcl and telnet servers 2015-09-28 08:01:02 +01:00
telnet_server.h update files to correct FSF address 2013-06-05 19:52:42 +00:00