From fa0fa7551ced3489f4589ca7eaaef5438dda2604 Mon Sep 17 00:00:00 2001 From: eidheim Date: Sat, 9 Jan 2016 13:50:00 +0100 Subject: [PATCH] Can now run debug commands while debug is running --- src/debug.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/debug.cc b/src/debug.cc index 68e3516..161f8a2 100644 --- a/src/debug.cc +++ b/src/debug.cc @@ -270,7 +270,7 @@ void Debug::step_out() { std::pair Debug::run_command(const std::string &command) { std::pair command_return; event_mutex.lock(); - if(state==lldb::StateType::eStateStopped) { + if(state==lldb::StateType::eStateStopped || state==lldb::StateType::eStateRunning) { lldb::SBCommandReturnObject command_return_object; debugger->GetCommandInterpreter().HandleCommand(command.c_str(), command_return_object, true); command_return.first=command_return_object.GetOutput();