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

Method InvokeBackendCommand

core/debuggercontroller.cpp:1431–1451  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1429
1430
1431std::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
1454void DebuggerController::ProcessOneVariable(uint64_t varAddress, Confidence<Ref<Type>> type, const std::string& name)

Callers 2

mainFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected