Пример #1
0
        private string RemoveBreakpoint(GDBPacket packet)
        {
            string[] parameters            = packet.GetCommandParameters();
            Breakpoint.BreakpointType type = Breakpoint.GetBreakpointType(int.Parse(parameters[0]));
            ushort addr = Convert.ToUInt16(parameters[1], 16);

            _target.RemoveBreakpoint(type, addr);

            return(StandartAnswers.OK);
        }
Пример #2
0
 public void RemoveBreakpoint(Breakpoint.BreakpointType type, uint addr)
 {
     byte[] packet = new byte[5];
     packet[0] = (byte)ComPort.cmd_type.clrBkpt;
     packet[1] = (byte)(addr >> 0);
     packet[2] = (byte)(addr >> 8);
     packet[3] = (byte)(addr >> 16);
     packet[4] = (byte)(addr >> 24);
     try
     {
         port.excange(packet);
     }
     catch (Exception e)
     {
     }
 }
Пример #3
0
        private string RemoveBreakpoint(GDBPacket packet)
        {
            string[] parameters            = packet.GetCommandParameters();
            Breakpoint.BreakpointType type = Breakpoint.GetBreakpointType(int.Parse(parameters[0]));
            ushort addr = Convert.ToUInt16(parameters[1], 16);

            if (type == Breakpoint.BreakpointType.Execution)
            {
                _emulator.RemoveBreakpoint(new ZXMAK2.Engine.Entities.Breakpoint(addr));
            }
            else
            {
                _jtagDevice.RemoveBreakpoint(addr);
            }

            return(StandartAnswers.OK);
        }
Пример #4
0
 public void AddBreakpoint(Breakpoint.BreakpointType type, ushort address)
 {
     accessBreakpoints.Add(new Breakpoint(type, address));
 }