]> git.proxmox.com Git - mirror_qemu.git/blobdiff - gdbstub.c
vfio/pci: Pass an error object to vfio_intx_enable
[mirror_qemu.git] / gdbstub.c
index b3101bf865aa237120c4d2edd1ca66a0b32175fe..ecea8c42cffd871544b05f3097f3b431a3f797e7 100644 (file)
--- a/gdbstub.c
+++ b/gdbstub.c
@@ -402,7 +402,9 @@ static void put_buffer(GDBState *s, const uint8_t *buf, int len)
         }
     }
 #else
-    qemu_chr_fe_write(s->chr, buf, len);
+    /* XXX this blocks entire thread. Rewrite to use
+     * qemu_chr_fe_write and background I/O callbacks */
+    qemu_chr_fe_write_all(s->chr, buf, len);
 #endif
 }
 
@@ -1618,7 +1620,7 @@ static int gdbserver_open(int port)
         close(fd);
         return -1;
     }
-    ret = listen(fd, 0);
+    ret = listen(fd, 1);
     if (ret < 0) {
         perror("listen");
         close(fd);