Пример #1
0
void CmdNext::cleanupStepCont() {
  if (m_stepContUnit) {
    if (m_stepContOffset != InvalidAbsoluteOffset) {
      phpRemoveBreakPoint(m_stepContUnit, m_stepContOffset);
      m_stepContOffset = InvalidAbsoluteOffset;
    }
    m_stepContTag = nullptr;
    m_stepContUnit = nullptr;
  }
}
Пример #2
0
CmdFlowControl::StepDestination&
CmdFlowControl::StepDestination::operator=(StepDestination&& other) {
  if (this != &other) {
    if (m_ownsInternalBreakpoint) phpRemoveBreakPoint(m_unit, m_offset);
    m_unit = other.m_unit;
    m_offset = other.m_offset;
    m_ownsInternalBreakpoint = other.m_ownsInternalBreakpoint;
    other.m_unit = nullptr;
    other.m_offset = InvalidAbsoluteOffset;
    other.m_ownsInternalBreakpoint = false;
  }
  return *this;
}
Пример #3
0
CmdFlowControl::StepDestination::~StepDestination() {
  if (m_ownsInternalBreakpoint) phpRemoveBreakPoint(m_unit, m_offset);
}