void CmdShell::onClientImpl(DebuggerClient &client) { if (DebuggerCommand::displayedHelp(client)) return; if (client.argCount() == 0) { help(client); return; } m_args = *client.args(); CmdShellPtr cmd = client.xend<CmdShell>(this); client.print(cmd->m_out); }
void CmdExtension::onClient(DebuggerClient &client) { if (DebuggerCommand::displayedHelp(client)) return; m_args = *client.args(); auto cmd = client.xend<CmdExtension>(this); if (cmd->m_out.empty()) { client.error(cmd->m_err); } else { client.print(cmd->m_out); } }
void CmdRun::onClient(DebuggerClient &client) { TRACE(2, "CmdRun::onClient\n"); if (DebuggerCommand::displayedHelp(client)) return; m_args = StringVecPtr(client.args(), null_deleter()); client.sendToServer(this); client.clearCachedLocal(); client.setFrame(0); throw DebuggerConsoleExitException(); }
void CmdRun::onClientImpl(DebuggerClient &client) { if (DebuggerCommand::displayedHelp(client)) return; m_args = StringVecPtr(client.args(), null_deleter()); m_smallStep = client.getDebuggerSmallStep(); client.sendToServer(this); client.clearCachedLocal(); client.setFrame(0); throw DebuggerConsoleExitException(); }
void CmdRun::onClient(DebuggerClient &client) { TRACE(2, "CmdRun::onClient\n"); if (DebuggerCommand::displayedHelp(client)) return; m_args = std::shared_ptr<std::vector<std::string>>(client.args(), [] (const void*) {}); client.sendToServer(this); client.clearCachedLocal(); client.setFrame(0); throw DebuggerConsoleExitException(); }