void CmdDown::onClient(DebuggerClient &client) { if (DebuggerCommand::displayedHelp(client)) return; if (client.argCount() > 1) { help(client); } else { if (client.isStackTraceAsync()) { CmdWhere(KindOfWhereAsync).fetchStackTrace(client); } else { CmdWhere().fetchStackTrace(client); } client.moveToFrame(client.getFrame() - CmdUp::ParseNumber(client)); } }
void CmdFrame::onClient(DebuggerClient &client) { if (DebuggerCommand::displayedHelp(client)) return; if (client.argCount() != 1) { help(client); } else { CmdWhere().fetchStackTrace(client); client.moveToFrame(CmdUp::ParseNumber(client)); } }
bool CmdFrame::onClient(DebuggerClient *client) { if (DebuggerCommand::onClient(client)) return true; if (client->argCount() != 1) { return help(client); } CmdWhere().fetchStackTrace(client); client->moveToFrame(CmdUp::ParseNumber(client)); return true; }