openocd/src/server
Øyvind Harboe f68dff6690 telnet: fix strage blank spaces at beginning of telnet lines
Sometimes we saw two strange blank spaces at the beginning
of the telnet lines.

progress
  ogress
>

This patch fixes this problem:

progress
progress
>

The code changes are *reasonably* clean, but perhaps it could be
made a bit more elegant, but I didn't want to change things after
I finished diagnosis/testing & submitting the patch.

The problem was that logging can send the text and the newline
separately in two different requests and the telnet code would
incorrectly remove the prompt from the end of a line.

Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
2010-01-31 15:06:02 +01:00
..
httpd whitespace cleanup, mostly for docs 2009-12-30 11:51:29 -08:00
gdb_server.c gdb_server: handle stepi/continue packet while target is running with more grace 2010-01-21 15:57:30 +01:00
gdb_server.h gdb_server -- symbol cleanup 2010-01-19 23:30:36 -08:00
httpd_stubs.c change #include "log.h" to <helper/log.h> 2009-12-03 04:22:52 -08:00
httpd.c src/server: usage/help/doc updates 2010-01-09 00:55:41 -08:00
httpd.h httpd: use register_commands() 2009-11-24 21:37:37 -08:00
Makefile.am build: add build/src to include path 2009-12-08 10:16:10 +01:00
server_stubs.c remove #if logic for openocd_sleep_*lude 2009-12-02 13:26:26 -08:00
server.c shutdown: more graceful shutdown 2010-01-11 08:13:17 +01:00
server.h server: add server_preinit which is called before config file is parsed. 2009-12-11 10:26:15 +00:00
startup.tcl improve startup tcl scripts 2009-11-24 21:37:29 -08:00
tcl_server.c src/server: usage/help/doc updates 2010-01-09 00:55:41 -08:00
tcl_server.h change #include "server.h" to <server/server.h> 2009-12-03 04:24:49 -08:00
telnet_server.c telnet: fix strage blank spaces at beginning of telnet lines 2010-01-31 15:06:02 +01:00
telnet_server.h change #include "server.h" to <server/server.h> 2009-12-03 04:24:49 -08:00