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

Method InvokeBackendCommand

core/adapters/lldbadapter.cpp:1243–1260  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1241
1242
1243std::string LldbAdapter::InvokeBackendCommand(const std::string& command)
1244{
1245 // Since the `kill` command can cause the target to quit, we must guard this function with the mutex as well
1246 std::unique_lock<std::mutex> lock(m_quitingMutex);
1247
1248 SBCommandInterpreter interpreter = m_debugger.GetCommandInterpreter();
1249 SBCommandReturnObject commandResult;
1250 interpreter.HandleCommand(command.c_str(), commandResult);
1251
1252 std::string result;
1253 if (commandResult.GetOutputSize() > 0)
1254 result += commandResult.GetOutput();
1255
1256 if (commandResult.GetErrorSize() > 0)
1257 result += commandResult.GetError();
1258
1259 return result;
1260}
1261
1262
1263uint64_t LldbAdapter::GetInstructionOffset()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected