diff options
Diffstat (limited to 'libpcsxcore')
| -rw-r--r-- | libpcsxcore/debug.c | 7 | ||||
| -rw-r--r-- | libpcsxcore/socket.c | 1 |
2 files changed, 4 insertions, 4 deletions
diff --git a/libpcsxcore/debug.c b/libpcsxcore/debug.c index b5c02b1e..c67e10e4 100644 --- a/libpcsxcore/debug.c +++ b/libpcsxcore/debug.c @@ -328,10 +328,11 @@ void StartDebugger() { } void StopDebugger() { - if (!debugger_active) { + if (debugger_active) { StopServer(); SysPrintf(_("Debugger stopped.\n")); - } + }
+ if (MemoryMap != NULL) { free(MemoryMap); MemoryMap = NULL; @@ -410,7 +411,7 @@ void ProcessDebug() { static void ProcessCommands() { int code, i, dumping; FILE *sfile; - char cmd[257], *arguments, *p, reply[10240], sname[L_tmpnam], *save, *dump; + char cmd[257], *arguments, *p, reply[10240], *save, *dump; u32 reg, value, size, address; breakpoint_t *bp; diff --git a/libpcsxcore/socket.c b/libpcsxcore/socket.c index 5d0cd9f5..bdecc01b 100644 --- a/libpcsxcore/socket.c +++ b/libpcsxcore/socket.c @@ -39,7 +39,6 @@ static int ptr = 0; #define PORT_NUMBER 12345 int StartServer() { - struct hostent * localhostent; struct in_addr localhostaddr; struct sockaddr_in localsocketaddr; |
