void CmdExtension::list(DebuggerClient &client) { if (client.argCount() == 2) { client.addCompletion("dump"); } else if (client.argCount() > 2) { client.addCompletion(DebuggerClient::AutoCompleteFileNames); } else { // This is cheating, assuming server has same list of extensions. Array exts = Extension::GetLoadedExtensions(); std::vector<std::string> items; for (ArrayIter iter(exts); iter; ++iter) { items.push_back(iter.second().toString().toCppString()); } client.addCompletion(items); } }
void CmdThread::list(DebuggerClient &client) { if (client.argCount() == 0) { static const char *keywords[] = { "list", "normal", "sticky", "exclusive", nullptr }; client.addCompletion(keywords); } }
void CmdMachine::list(DebuggerClient &client) { if (client.argCount() == 0) { static const char *keywords[] = { "disconnect", "connect", "rpc", "list", "attach", nullptr }; client.addCompletion(keywords); } }
void CmdMacro::list(DebuggerClient &client) { if (client.argCount() == 0) { static const char *keywords[] = { "start", "end", "replay", "list", "clear", nullptr}; client.addCompletion(keywords); } }
void CmdHelp::list(DebuggerClient &client) { if (client.argCount() == 0) { client.addCompletion(DebuggerClient::GetCommands()); client.addCompletion("tutorial"); client.addCompletion("start"); } else if (client.arg(1, "tutorial")) { client.addCompletion("on"); client.addCompletion("off"); client.addCompletion("auto"); } }
void CmdPrint::list(DebuggerClient &client) { if (client.arg(1, "clear")) { client.addCompletion("all"); return; } client.addCompletion(DebuggerClient::AutoCompleteCode); if (client.argCount() == 0) { client.addCompletion(Formats); client.addCompletion("always"); client.addCompletion("list"); client.addCompletion("clear"); } else if (client.argCount() == 1 && client.arg(1, "always")) { client.addCompletion(Formats); } }
void CmdShell::list(DebuggerClient &client) { client.addCompletion(DebuggerClient::AutoCompleteFileNames); }
void CmdRun::list(DebuggerClient &client) { TRACE(2, "CmdRun::list\n"); client.addCompletion(DebuggerClient::AutoCompleteFileNames); }