]> git.sur5r.net Git - openocd/commit
server: read/write now goes through connection fn's
authorØyvind Harboe <oyvind.harboe@zylin.com>
Mon, 27 Sep 2010 07:24:51 +0000 (09:24 +0200)
committerØyvind Harboe <oyvind.harboe@zylin.com>
Fri, 1 Oct 2010 08:21:33 +0000 (10:21 +0200)
commitcb2dba2c1257e0aa80edc9a171a9c5cd7b2822f8
tree437e9be13be7c6c6880a878da7acc7d1eb35b9a6
parent5a41435e45ae18c0823780382c214fb7324dbe7d
server: read/write now goes through connection fn's

depending on whether the connection is over a socket
or pipe, the read is done differently.

pipes can return -1 when writing 0 bytes, make 0 byte
writes a successful no-op. 0 byte writes falls out
naturally of tcl server code.

Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
src/server/gdb_server.c
src/server/server.c
src/server/server.h
src/server/tcl_server.c
src/server/telnet_server.c