static void gdb_accept(void)

{

    GDBState *s;

    struct sockaddr_in sockaddr;

    socklen_t len;

    int fd;



    for(;;) {

        len = sizeof(sockaddr);

        fd = accept(gdbserver_fd, (struct sockaddr *)&sockaddr, &len);

        if (fd < 0 && errno != EINTR) {

            perror("accept");

            return;

        } else if (fd >= 0) {

#ifndef _WIN32

            fcntl(fd, F_SETFD, FD_CLOEXEC);

#endif

            break;

        }

    }



    /* set short latency */

    socket_set_nodelay(fd);



    s = g_malloc0(sizeof(GDBState));

    s->c_cpu = first_cpu;

    s->g_cpu = first_cpu;

    s->fd = fd;

    gdb_has_xml = false;



    gdbserver_state = s;



    fcntl(fd, F_SETFL, O_NONBLOCK);

}

static void gdb_accept(void)

{

    GDBState *s;

    struct sockaddr_in sockaddr;

    socklen_t len;

    int fd;



    for(;;) {

        len = sizeof(sockaddr);

        fd = accept(gdbserver_fd, (struct sockaddr *)&sockaddr, &len);

        if (fd < 0 && errno != EINTR) {

            perror("accept");

            return;

        } else if (fd >= 0) {

#ifndef _WIN32

            fcntl(fd, F_SETFD, FD_CLOEXEC);

#endif

            break;

        }

    }



    

    socket_set_nodelay(fd);



    s = g_malloc0(sizeof(GDBState));

    s->c_cpu = first_cpu;

    s->g_cpu = first_cpu;

    s->fd = fd;

    gdb_has_xml = false;



    gdbserver_state = s;



    fcntl(fd, F_SETFL, O_NONBLOCK);

}

static void FUNC_0(void)

{

    GDBState *s;

    struct sockaddr_in VAR_0;

    socklen_t len;

    int VAR_1;



    for(;;) {

        len = sizeof(VAR_0);

        VAR_1 = accept(gdbserver_fd, (struct VAR_0 *)&VAR_0, &len);

        if (VAR_1 < 0 && errno != EINTR) {

            perror("accept");

            return;

        } else if (VAR_1 >= 0) {

#ifndef _WIN32

            fcntl(VAR_1, F_SETFD, FD_CLOEXEC);

#endif

            break;

        }

    }



    

    socket_set_nodelay(VAR_1);



    s = g_malloc0(sizeof(GDBState));

    s->c_cpu = first_cpu;

    s->g_cpu = first_cpu;

    s->VAR_1 = VAR_1;

    gdb_has_xml = false;



    gdbserver_state = s;



    fcntl(VAR_1, F_SETFL, O_NONBLOCK);

}

static void FUNC_0(void)
{ GDBState *s; struct sockaddr_in VAR_0; socklen_t len; int VAR_1; for(;;) { len = sizeof(VAR_0); VAR_1 = accept(gdbserver_fd, (struct VAR_0 *)&VAR_0, &len); if (VAR_1 < 0 && errno != EINTR) { perror("accept"); return; } else if (VAR_1 >= 0) { #ifndef _WIN32
fcntl(VAR_1, F_SETFD, FD_CLOEXEC); #endif
break; } } socket_set_nodelay(VAR_1); s = g_malloc0(sizeof(GDBState)); s->c_cpu = first_cpu; s->g_cpu = first_cpu; s->VAR_1 = VAR_1; gdb_has_xml = false; gdbserver_state = s; fcntl(VAR_1, F_SETFL, O_NONBLOCK); }