Created
March 9, 2015 21:58
-
-
Save Subv/f69c28cd28b42bc002ff to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/core/arm/gdb_stub.cpp b/src/core/arm/gdb_stub.cpp | |
index 940d357..7f3182c 100644 | |
--- a/src/core/arm/gdb_stub.cpp | |
+++ b/src/core/arm/gdb_stub.cpp | |
@@ -430,7 +430,6 @@ static void gdb_remove_bp(std::string command) { | |
namespace GDB { | |
void Init(u16 port) { | |
- socklen_t len; | |
#ifdef _WIN32 | |
WSAStartup(MAKEWORD(2, 2), &InitData); | |
#endif | |
@@ -465,9 +464,11 @@ void Init(u16 port) { | |
LOG_INFO(GDB, "Waiting for gdb to connect...\n"); | |
+ int len = sizeof(GDBState.saddr_client); | |
GDBState.socket = accept(tmpsock, (struct sockaddr *)&GDBState.saddr_client, &len); | |
if (GDBState.socket < 0) | |
LOG_ERROR(GDB, "Failed to accept gdb client"); | |
+ | |
LOG_INFO(GDB, "Client connected.\n"); | |
GDBState.saddr_client.sin_addr.s_addr = ntohl(GDBState.saddr_client.sin_addr.s_addr); | |
// if (((saddr_client.sin_addr.s_addr >> 24) & 0xff) != 127 || |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment