Exemplo n.º 1
0
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);
}
Exemplo n.º 2
0
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);
}