static void gdb_vm_stopped(void *opaque, int reason)

{

    GDBState *s = opaque;

    char buf[256];

    int ret;



    if (s->state == RS_SYSCALL)




    /* disable single step if it was enable */

    cpu_single_step(s->env, 0);



    if (reason == EXCP_DEBUG) {








	tb_flush(s->env);

        ret = SIGTRAP;

    } else if (reason == EXCP_INTERRUPT) {

        ret = SIGINT;

    } else {

        ret = 0;


    snprintf(buf, sizeof(buf), "S%02x", ret);


static void gdb_vm_stopped(void *opaque, int reason)

{

    GDBState *s = opaque;

    char buf[256];

    int ret;



    if (s->state == RS_SYSCALL)




    

    cpu_single_step(s->env, 0);



    if (reason == EXCP_DEBUG) {








	tb_flush(s->env);

        ret = SIGTRAP;

    } else if (reason == EXCP_INTERRUPT) {

        ret = SIGINT;

    } else {

        ret = 0;


    snprintf(buf, sizeof(buf), "S%02x", ret);


static void FUNC_0(void *VAR_0, int VAR_1)

{

    GDBState *s = VAR_0;

    char VAR_2[256];

    int VAR_3;



    if (s->state == RS_SYSCALL)




    

    cpu_single_step(s->env, 0);



    if (VAR_1 == EXCP_DEBUG) {








	tb_flush(s->env);

        VAR_3 = SIGTRAP;

    } else if (VAR_1 == EXCP_INTERRUPT) {

        VAR_3 = SIGINT;

    } else {

        VAR_3 = 0;


    snprintf(VAR_2, sizeof(VAR_2), "S%02x", VAR_3);


static void FUNC_0(void *VAR_0, int VAR_1)
{ GDBState *s = VAR_0; char VAR_2[256]; int VAR_3; if (s->state == RS_SYSCALL)
cpu_single_step(s->env, 0); if (VAR_1 == EXCP_DEBUG) { tb_flush(s->env); VAR_3 = SIGTRAP; } else if (VAR_1 == EXCP_INTERRUPT) { VAR_3 = SIGINT; } else { VAR_3 = 0; snprintf(VAR_2, sizeof(VAR_2), "S%02x", VAR_3);