all repos — mgba @ 5d1b05c9904bdc3dc285f0278b3f9cb928640ac8

mGBA Game Boy Advance Emulator

Debugger: Use new SocketWouldBlock layer
Jeffrey Pfau jeffrey@endrift.com
Mon, 23 Feb 2015 23:27:56 -0800
commit

5d1b05c9904bdc3dc285f0278b3f9cb928640ac8

parent

c73ea2e5955514535d1a56794c727e8049ef97e1

1 files changed, 2 insertions(+), 2 deletions(-)

jump to
M src/debugger/gdb-stub.csrc/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;