示例#1
0
        private Breakpoint GetBreakpoint(IDebugBreakpoint e)
        {
            uint breakpointId;
            e.GetId(out breakpointId);

            Breakpoint result;
            _breakpoints.TryGetValue(breakpointId, out result);

            return result;
        }
示例#2
0
        /// <summary>
        /// Callback executed when breakpoint gets hit.
        /// </summary>
        /// <param name="Bp">Breakpoint that was hit.</param>
        /// <returns></returns>
        public int Breakpoint(IDebugBreakpoint Bp)
        {
            uint bpId = Bp.GetId();
            BreakpointHitResult actionStatus = breakpoints[bpId].ExecuteAction();

            if (actionStatus == BreakpointHitResult.Continue)
            {
                debugStatusGoEvent.Set();
                return((int)Defines.DebugStatusGo);
            }
            else
            {
                return((int)Defines.DebugStatusBreak);
            }
        }