From df2c1c52bea00be22b380711341a4def249fa534 Mon Sep 17 00:00:00 2001 From: "SND\\weimingzhi_cp" Date: Fri, 9 Oct 2009 11:01:55 +0000 Subject: git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@31471 e17a0e51-4ae3-4d35-97c3-1a29b211df97 --- libpcsxcore/debug.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'libpcsxcore/debug.c') 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; -- cgit v1.2.3