| 1429 | |
| 1430 | |
| 1431 | std::string DebuggerController::InvokeBackendCommand(const std::string& cmd) |
| 1432 | { |
| 1433 | if (!m_adapter) |
| 1434 | { |
| 1435 | if (!CreateDebugAdapter()) |
| 1436 | return "Error: invalid adapter\n"; |
| 1437 | } |
| 1438 | |
| 1439 | if (m_adapter) |
| 1440 | { |
| 1441 | std::string cmdToSend = cmd; |
| 1442 | if (cmdToSend.empty()) |
| 1443 | cmdToSend = m_lastCommand; |
| 1444 | else |
| 1445 | m_lastCommand = cmdToSend; |
| 1446 | |
| 1447 | return m_adapter->InvokeBackendCommand(cmdToSend); |
| 1448 | } |
| 1449 | |
| 1450 | return "Error: invalid adapter\n"; |
| 1451 | } |
| 1452 | |
| 1453 | |
| 1454 | void DebuggerController::ProcessOneVariable(uint64_t varAddress, Confidence<Ref<Type>> type, const std::string& name) |
no outgoing calls
no test coverage detected