summaryrefslogtreecommitdiff
path: root/libpcsxcore
diff options
context:
space:
mode:
authorSND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2009-10-09 11:01:55 +0000
committerSND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2009-10-09 11:01:55 +0000
commitdf2c1c52bea00be22b380711341a4def249fa534 (patch)
treea0ab23a8f3b851195e6f402b0d589f0ba2f9d1d2 /libpcsxcore
parentc053578923c3367a442f2a850ccdd5380489c544 (diff)
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@31471 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'libpcsxcore')
-rw-r--r--libpcsxcore/debug.c7
-rw-r--r--libpcsxcore/socket.c1
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;