void gdb_exit(CPUState *env, int code)

{

  GDBState *s;

  char buf[4];



  s = &gdbserver_state;

  if (gdbserver_fd < 0 || s->fd < 0)

    return;



  snprintf(buf, sizeof(buf), "W%02x", code);

  put_packet(s, buf);

}

void gdb_exit(CPUState *env, int code)

{

  GDBState *s;

  char buf[4];



  s = &gdbserver_state;

  if (gdbserver_fd < 0 || s->fd < 0)

    return;



  snprintf(buf, sizeof(buf), "W%02x", code);

  put_packet(s, buf);

}

void FUNC_0(CPUState *VAR_0, int VAR_1)

{

  GDBState *s;

  char VAR_2[4];



  s = &gdbserver_state;

  if (gdbserver_fd < 0 || s->fd < 0)

    return;



  snprintf(VAR_2, sizeof(VAR_2), "W%02x", VAR_1);

  put_packet(s, VAR_2);

}

void FUNC_0(CPUState *VAR_0, int VAR_1)
{ GDBState *s; char VAR_2[4]; s = &gdbserver_state; if (gdbserver_fd < 0 || s->fd < 0)
return; snprintf(VAR_2, sizeof(VAR_2), "W%02x", VAR_1); put_packet(s, VAR_2); }