diff --git a/src/debugger.c b/src/debugger.c index e391a10d1..b0eef8234 100644 --- a/src/debugger.c +++ b/src/debugger.c @@ -521,6 +521,7 @@ static void _commandLine(struct ARMDebugger* debugger) { void ARMDebuggerInit(struct ARMDebugger* debugger, struct ARMCore* cpu) { debugger->cpu = cpu; debugger->state = DEBUGGER_PAUSED; + debugger->lastCommand = 0; } void ARMDebuggerRun(struct ARMDebugger* debugger) {