]> git.proxmox.com Git - qemu.git/blobdiff - gdbstub.c
balloon: Add braces around if statements
[qemu.git] / gdbstub.c
index b9ae30dd7dbbcf7f212a06459d9a5182cdd89c1d..27b0cfa81d11ef5b21e0d355838dd72229e92815 100644 (file)
--- a/gdbstub.c
+++ b/gdbstub.c
@@ -37,7 +37,7 @@
 
 #define MAX_PACKET_LENGTH 4096
 
-#include "exec-all.h"
+#include "cpu.h"
 #include "qemu_socket.h"
 #include "kvm.h"
 
@@ -319,7 +319,7 @@ static int get_char(GDBState *s)
     int ret;
 
     for(;;) {
-        ret = recv(s->fd, &ch, 1, 0);
+        ret = qemu_recv(s->fd, &ch, 1, 0);
         if (ret < 0) {
             if (errno == ECONNRESET)
                 s->fd = -1;