示例#1
0
文件: GdbStub.cs 项目: emul8/emul8
        public GdbStub(int port, ICpuSupportingGdb cpu)
        {
            this.cpu = cpu;
            Port = port;

            pcktBuilder = new PacketBuilder();

            commands = new CommandsManager(cpu);
            TypeManager.Instance.AutoLoadedType += commands.Register;

            cpu.Halted += OnHalted;
            cpu.ExecutionMode = ExecutionMode.SingleStep;

            terminal = new SocketServerProvider();
            terminal.DataReceived += OnByteWritten;
            terminal.Start(port);
        }
示例#2
0
文件: Command.cs 项目: rte-se/emul8
 protected Command(CommandsManager manager)
 {
     this.manager = manager;
 }