| 245 | |
| 246 | |
| 247 | bool DebuggerController::Execute() |
| 248 | { |
| 249 | std::unique_lock<std::recursive_mutex> lock(m_targetControlMutex); |
| 250 | |
| 251 | std::string filePath = m_state->GetExecutablePath(); |
| 252 | bool requestTerminal = m_state->GetRequestTerminalEmulator(); |
| 253 | LaunchConfigurations configs = {requestTerminal, m_state->GetInputFile()}; |
| 254 | |
| 255 | #ifdef WIN32 |
| 256 | /* temporary solution (not great, sorry!), we probably won't have to do this once we introduce std::filesystem::path */ |
| 257 | std::replace(filePath.begin(), filePath.end(), '/', '\\'); |
| 258 | #endif |
| 259 | |
| 260 | return m_adapter->ExecuteWithArgs( |
| 261 | filePath, m_state->GetCommandLineArguments(), m_state->GetWorkingDirectory(), configs); |
| 262 | } |
| 263 | |
| 264 | |
| 265 | bool DebuggerController::CreateDebugAdapter() |
no test coverage detected