Ejemplo n.º 1
0
        // Toggles the enabled state of this pending breakpoint.
        int IDebugPendingBreakpoint2.Enable(int fEnable)
        {
            lock (_boundBreakpoints)
            {
                _enabled = fEnable == 0 ? false : true;
                if (_bp != null)
                {
                    _bp.Enable(_enabled, _engine.DebuggedProcess);
                }
            }

            return(Constants.S_OK);
        }
Ejemplo n.º 2
0
        // Toggles the enabled state of this pending breakpoint.
        int IDebugPendingBreakpoint2.Enable(int fEnable)
        {
            bool newValue = fEnable == 0 ? false : true;

            if (_enabled != newValue)
            {
                _enabled = newValue;
                PendingBreakpoint bp = _bp;
                if (bp != null)
                {
                    bp.Enable(_enabled, _engine.DebuggedProcess);
                }
            }

            return(Constants.S_OK);
        }