| 1241 | |
| 1242 | |
| 1243 | std::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 | |
| 1263 | uint64_t LldbAdapter::GetInstructionOffset() |
nothing calls this directly
no outgoing calls
no test coverage detected