From a6027b6136c0820986dfb8aad53347567e19f7ba Mon Sep 17 00:00:00 2001 From: Nukem Date: Mon, 15 Feb 2016 19:18:34 -0500 Subject: [PATCH] DBG: Remove print for "Program is already running" fixes #528 --- src/dbg/debugger_commands.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/dbg/debugger_commands.cpp b/src/dbg/debugger_commands.cpp index 912bd5dc..1a019d33 100644 --- a/src/dbg/debugger_commands.cpp +++ b/src/dbg/debugger_commands.cpp @@ -124,11 +124,10 @@ CMDRESULT cbDebugStop(int argc, char* argv[]) CMDRESULT cbDebugRun(int argc, char* argv[]) { + // Don't "run" twice if the program is already running if(dbgisrunning()) - { - dputs("Program is already running"); return STATUS_ERROR; - } + GuiSetDebugState(running); unlock(WAITID_RUN); PLUG_CB_RESUMEDEBUG callbackInfo;