diff options
| author | SND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2009-10-09 11:01:55 +0000 |
|---|---|---|
| committer | SND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2009-10-09 11:01:55 +0000 |
| commit | df2c1c52bea00be22b380711341a4def249fa534 (patch) | |
| tree | a0ab23a8f3b851195e6f402b0d589f0ba2f9d1d2 /libpcsxcore/debug.c | |
| parent | c053578923c3367a442f2a850ccdd5380489c544 (diff) | |
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@31471 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'libpcsxcore/debug.c')
| -rw-r--r-- | libpcsxcore/debug.c | 7 |
1 files changed, 4 insertions, 3 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; |
