Ejemplo n.º 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);
        }
Ejemplo n.º 2
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);
        }