[Lldb-commits] [PATCH] Wrap socket error handling with SetLastError and IsInterrupted internal functions which can properly treat Windows and POSIX errors.

Oleksiy Vyalov ovyalov at google.com
Thu Apr 9 16:09:55 PDT 2015


Hi zturner, clayborg,

Populate Error object either with errno or WSAGetLastError() in case of Windows.
We'll still need to fix Error::AsCString to call FormatMessage for Windows errors but at least with this CL we can report about socket errors on Windows  with meaningful code and message like "unknown error".

http://reviews.llvm.org/D8939

Files:
  source/Host/common/Socket.cpp

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D8939.23540.patch
Type: text/x-patch
Size: 5476 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20150409/7b48a619/attachment.bin>


More information about the lldb-commits mailing list