riscv-openocd/src
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
..
flash flash: Add the Freedom E310-G002 SPI Flash 2020-06-14 14:23:17 +01:00
helper log: fix kept_alive() and report expired timeout 2020-06-06 18:04:14 +01:00
jtag jtag/tcl: fix memory leak in command 'irscan' 2020-06-06 18:05:46 +01:00
pld helper/command: change prototype of command_print/command_print_sameline 2019-05-14 19:37:11 +01:00
rtos coding style: fix multi-line dereferencing 2020-06-06 18:06:05 +01:00
server openocd: fix issue in WIN32 with TCP adapters 2020-06-14 14:23:48 +01:00
svf coding style: avoid unnecessary line continuations 2020-05-09 14:39:29 +01:00
target coding style: fix multi-line dereferencing 2020-06-06 18:06:05 +01:00
transport swim: add new transport 2020-05-24 21:32:05 +01:00
xsvf xsvf: fix memory leak 2020-01-16 09:44:33 +00:00
Makefile.am Convert to non-recursive make 2016-12-08 16:23:10 +00:00
hello.c helper/command: change prototype of command_print/command_print_sameline 2019-05-14 19:37:11 +01:00
hello.h Make #include guard naming consistent 2016-05-24 22:30:55 +01:00
main.c Remove FSF address from GPL notices 2016-05-24 22:30:01 +01:00
openocd.c openocd: fix issue in WIN32 with TCP adapters 2020-06-14 14:23:48 +01:00
openocd.h Make #include guard naming consistent 2016-05-24 22:30:55 +01:00