static void gdb_accept(void)

{

    GDBState *s;

    struct sockaddr_in sockaddr;

    socklen_t len;

    int val, 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) {




            break;

        }

    }



    /* set short latency */

    val = 1;

    setsockopt(fd, IPPROTO_TCP, TCP_NODELAY, (char *)&val, sizeof(val));



    s = qemu_mallocz(sizeof(GDBState));

    s->c_cpu = first_cpu;

    s->g_cpu = first_cpu;

    s->fd = fd;

    gdb_has_xml = 0;



    gdbserver_state = s;



    fcntl(fd, F_SETFL, O_NONBLOCK);

}
static void gdb_accept(void)

{

    GDBState *s;

    struct sockaddr_in sockaddr;

    socklen_t len;

    int val, 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) {




            break;

        }

    }



    

    val = 1;

    setsockopt(fd, IPPROTO_TCP, TCP_NODELAY, (char *)&val, sizeof(val));



    s = qemu_mallocz(sizeof(GDBState));

    s->c_cpu = first_cpu;

    s->g_cpu = first_cpu;

    s->fd = fd;

    gdb_has_xml = 0;



    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, VAR_2;



    for(;;) {

        len = sizeof(VAR_0);

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

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

            perror("accept");

            return;

        } else if (VAR_2 >= 0) {




            break;

        }

    }



    

    VAR_1 = 1;

    setsockopt(VAR_2, IPPROTO_TCP, TCP_NODELAY, (char *)&VAR_1, sizeof(VAR_1));



    s = qemu_mallocz(sizeof(GDBState));

    s->c_cpu = first_cpu;

    s->g_cpu = first_cpu;

    s->VAR_2 = VAR_2;

    gdb_has_xml = 0;



    gdbserver_state = s;



    fcntl(VAR_2, F_SETFL, O_NONBLOCK);

}
static void FUNC_0(void)
{ GDBState *s; struct sockaddr_in VAR_0; socklen_t len; int VAR_1, VAR_2; for(;;) { len = sizeof(VAR_0); VAR_2 = accept(gdbserver_fd, (struct VAR_0 *)&VAR_0, &len); if (VAR_2 < 0 && errno != EINTR) { perror("accept"); return; } else if (VAR_2 >= 0) { break; } } VAR_1 = 1; setsockopt(VAR_2, IPPROTO_TCP, TCP_NODELAY, (char *)&VAR_1, sizeof(VAR_1)); s = qemu_mallocz(sizeof(GDBState)); s->c_cpu = first_cpu; s->g_cpu = first_cpu; s->VAR_2 = VAR_2; gdb_has_xml = 0; gdbserver_state = s; fcntl(VAR_2, F_SETFL, O_NONBLOCK); }