Ejemplo n.º 1
0
        public static bool TestBreakpoint(BreakpointEntry entry)
        {
            if (!_enableBreakpoints)
            {
                return(false);
            }

            BreakpointType[] _bkpts = GetBreakpointsForProcessor(entry.Processor);
            return((_bkpts[entry.Address] & entry.Type) != 0);
        }
Ejemplo n.º 2
0
        public static void SetBreakpoint(BreakpointEntry entry)
        {
            BreakpointType[] _bkpts = GetBreakpointsForProcessor(entry.Processor);

            if (entry.Type == BreakpointType.None)
            {
                _bkpts[entry.Address] = BreakpointType.None;
            }
            else
            {
                _bkpts[entry.Address] |= entry.Type;
            }
        }