コード例 #1
0
        public void DeactivateBreakpoint(Breakpoint bp)
        {
            switch (bp.Type)
            {
            case MemoryBreakpointType.Execution:
                if (ExecBps.ContainsKey(bp))
                {
                    ExecBps[bp] = false;
                }
                break;

            case MemoryBreakpointType.Read:
                if (ReadBps.ContainsKey(bp))
                {
                    ReadBps[bp] = false;
                }
                break;

            case MemoryBreakpointType.Write:
                if (WriteBps.ContainsKey(bp))
                {
                    WriteBps[bp] = false;
                }
                break;
            }
        }
コード例 #2
0
        public void AddBreakpoint(Breakpoint bp, bool isActive)
        {
            bp.Address = (ushort)(bp.Address & 0x3FFF);
            switch (bp.Type)
            {
            case MemoryBreakpointType.Execution:
                haveExecBps = true;
                if (!ExecBps.ContainsKey(bp))
                {
                    ExecBps.Add(bp, isActive);
                }
                break;

            case MemoryBreakpointType.Read:
                haveReadBps = true;
                if (!ReadBps.ContainsKey(bp))
                {
                    ReadBps.Add(bp, isActive);
                }
                break;

            case MemoryBreakpointType.Write:
                haveWriteBps = true;
                if (!WriteBps.ContainsKey(bp))
                {
                    WriteBps.Add(bp, isActive);
                }
                break;
            }
        }