MCPcopy Create free account
hub / github.com/Vector35/debugger / Execute

Method Execute

core/debuggercontroller.cpp:247–262  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

245
246
247bool 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
265bool DebuggerController::CreateDebugAdapter()

Callers 1

BNDebuggerExecuteFunction · 0.45

Calls 6

GetExecutablePathMethod · 0.45
GetInputFileMethod · 0.45
ExecuteWithArgsMethod · 0.45
GetWorkingDirectoryMethod · 0.45

Tested by

no test coverage detected