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));
}
}