riscv-openocd/src/server
Tarek BOCHKATI 9a690c6bdb openocd: fix issue in WIN32 with TCP adapters
Issue: server_quit is called before adapter_quit:
  In WIN32 only in server_quit we do an WSACleanup,
  which terminates/closes all active sockets.
  So if the adapter is TCP based, the adapter.quit handler
  will fail if it will need to send some commands through TCP.

Example: close_socket in jtag_vpi_quit will fail in WIN32
  because the socket is already closed
  and the errno is set as "Bad File Descriptor"

To fix that we introduced new functions called server_host_os_entry/quit
to manage specific OS setup (hence WSA for sockets in WINDOWS) in order
to delay WSACleanup after adapter_quit().

Change-Id: Ie4afacafe123857f6ae300e376bdfcf0d8c027ac
Signed-off-by: Tarek BOCHKATI <tarek.bouchkati@gmail.com>
Reviewed-on: http://openocd.zylin.com/5456
Tested-by: jenkins
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
2020-06-14 14:23:48 +01:00
..
Makefile.am helper,rtos,server: Restore missing warning flags 2017-01-15 10:16:16 +00:00
gdb_server.c coding style: avoid unnecessary line continuations 2020-05-09 14:39:29 +01:00
gdb_server.h server: free strduped port numbers 2018-03-15 17:08:53 +00:00
server.c openocd: fix issue in WIN32 with TCP adapters 2020-06-14 14:23:48 +01:00
server.h openocd: fix issue in WIN32 with TCP adapters 2020-06-14 14:23:48 +01:00
server_stubs.c Remove FSF address from GPL notices 2016-05-24 22:30:01 +01:00
startup.tcl CVE-2018-5704: Prevent some forms of Cross Protocol Scripting attacks 2019-11-22 18:25:34 +00:00
tcl_server.c server: set tcp port and bind address before init 2020-05-02 15:40:57 +01:00
tcl_server.h server: free strduped port numbers 2018-03-15 17:08:53 +00:00
telnet_server.c server/telnet: Fix history output 2020-05-09 14:35:43 +01:00
telnet_server.h server: free strduped port numbers 2018-03-15 17:08:53 +00:00