void gdb_exit(CPUArchState *env, int code)

{

  GDBState *s;

  char buf[4];



  s = gdbserver_state;

  if (!s) {

      return;

  }

#ifdef CONFIG_USER_ONLY

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

      return;

  }

#endif



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

  put_packet(s, buf);



#ifndef CONFIG_USER_ONLY

  if (s->chr) {

      qemu_chr_delete(s->chr);

  }

#endif

}

void gdb_exit(CPUArchState *env, int code)

{

  GDBState *s;

  char buf[4];



  s = gdbserver_state;

  if (!s) {

      return;

  }

#ifdef CONFIG_USER_ONLY

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

      return;

  }

#endif



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

  put_packet(s, buf);



#ifndef CONFIG_USER_ONLY

  if (s->chr) {

      qemu_chr_delete(s->chr);

  }

#endif

}

  if (s->chr) {       qemu_chr_delete(s->chr);
void FUNC_0(CPUArchState *VAR_0, int VAR_1)

{

  GDBState *s;

  char VAR_2[4];



  s = gdbserver_state;

  if (!s) {

      return;

  }

#ifdef CONFIG_USER_ONLY

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

      return;

  }

#endif



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

  put_packet(s, VAR_2);



#ifndef CONFIG_USER_ONLY

  if (s->chr) {

      qemu_chr_delete(s->chr);

  }

#endif

}

void FUNC_0(CPUArchState *VAR_0, int VAR_1)
{ GDBState *s; char VAR_2[4]; s = gdbserver_state; if (!s) { return; } #ifdef CONFIG_USER_ONLY
if (gdbserver_fd < 0 || s->fd < 0) { return; } #endif
snprintf(VAR_2, sizeof(VAR_2), "W%02x", (uint8_t)VAR_1); put_packet(s, VAR_2); #ifndef CONFIG_USER_ONLY
if (s->chr) { qemu_chr_delete(s->chr); } #endif
}