Refactor DebuggerCommand.

Rename onClient to onClientImpl and move to protected space. Rename onClientD to onClient. Add comments.
Esse commit está contido em:
Herman Venter
2013-05-15 11:40:00 -07:00
commit de Sara Golemon
commit f7da2cfa18
67 arquivos alterados com 261 adições e 116 exclusões
+5 -5
Ver Arquivo
@@ -157,17 +157,17 @@ bool DebuggerCommand::help(DebuggerClient *client) {
// If the first argument of the command is "help" or "?"
// this displays help text for the command and returns true.
// Otherwise it returns false.
bool DebuggerCommand::onClient(DebuggerClient *client) {
TRACE(2, "DebuggerCommand::onClient\n");
bool DebuggerCommand::onClientImpl(DebuggerClient *client) {
TRACE(2, "DebuggerCommand::onClientImpl\n");
if (client->arg(1, "help") || client->arg(1, "?")) {
return help(client);
}
return false;
}
bool DebuggerCommand::onClientD(DebuggerClient *client) {
TRACE(2, "DebuggerCommand::onClientD\n");
bool ret = onClient(client);
bool DebuggerCommand::onClient(DebuggerClient *client) {
TRACE(2, "DebuggerCommand::onClient\n");
bool ret = onClientImpl(client);
if (client->isApiMode() && !m_incomplete) {
setClientOutput(client);
}