Inheritance: IDisposable, IExternal
Exemplo n.º 1
0
        public void StartGdbServer(int port)
        {
            if(IsGdbServerCreated)
            {
                throw new RecoverableException(string.Format("GDB server already started for this cpu on port: {0}", stub.Port));
            }

            try
            {
                stub = new GdbStub(port, this);
            }
            catch(SocketException e)
            {
                throw new RecoverableException(string.Format("Could not start GDB server: {0}", e.Message));
            }
        }
Exemplo n.º 2
0
 public CommunicationHandler(GdbStub stub)
 {
     this.stub    = stub;
     queue        = new Queue <byte>();
     internalLock = new object();
 }