bool CmdInstrument::onServer(DebuggerProxy *proxy) { m_instPoints = &m_ips; m_enabled = true; if (m_type == ActionRead) { readFromTable(proxy); } else if (m_type == ActionWrite) { validateAndWriteToTable(proxy); } return proxy->sendToClient(this); }
bool CmdInstrument::onServerVM(DebuggerProxy *proxy) { m_instPoints = &m_ips; m_enabled = true; DebuggerProxyVM* proxyVM = static_cast<DebuggerProxyVM*>(proxy); if (m_type == ActionRead) { readFromTable(proxyVM); } else if (m_type == ActionWrite) { validateAndWriteToTable(proxyVM); } return proxy->send(this); }