Debugger: Use new SocketWouldBlock layer
Jeffrey Pfau jeffrey@endrift.com
Mon, 23 Feb 2015 23:27:56 -0800
1 files changed,
2 insertions(+),
2 deletions(-)
jump to
M
src/debugger/gdb-stub.c
→
src/debugger/gdb-stub.c
@@ -533,7 +533,7 @@ if (!SocketSetBlocking(stub->connection, false)) {
goto connectionLost; } ARMDebuggerEnter(&stub->d, DEBUGGER_ENTER_ATTACHED, 0); - } else if (errno == EWOULDBLOCK || errno == EAGAIN) { + } else if (SocketWouldBlock()) { return; } else { goto connectionLost;@@ -549,7 +549,7 @@ if (messageLen == 0) {
goto connectionLost; } if (messageLen == -1) { - if (errno == EWOULDBLOCK || errno == EAGAIN) { + if (SocketWouldBlock()) { return; } goto connectionLost;