Hello SDCC team,
Running the debugger in MSVC produces an error when quiting.
The reason is that the code closes the socket to the simulator and closes the associated streams.
This is wrong. When closing an associated stream, the socket is also closed, as it is associated and not a duplicate handle. On unix this is ignored, but on msvc this leads to an assert -> crash.
The following patch fixes it up and also removes some annoying win32 warnings.
Now only the socket is closed, and the streams are simply set to NULL.
Thanks,
/pedro
Applied in [r9500]