]> git.proxmox.com Git - mirror_qemu.git/blobdiff - gdbstub.c
vl: Use exit(1) when requested VGA interface is unavailable
[mirror_qemu.git] / gdbstub.c
index 61c12b168e7e4cb3845e70055ececf963caa6550..b9e3710bfec3a941ac3970a0118f5414160aa75f 100644 (file)
--- a/gdbstub.c
+++ b/gdbstub.c
  * License along with this library; if not, see <http://www.gnu.org/licenses/>.
  */
 #include "qemu/osdep.h"
-#include "qemu-common.h"
+#include "qapi/error.h"
+#include "qemu/cutils.h"
+#include "cpu.h"
 #ifdef CONFIG_USER_ONLY
-
 #include "qemu.h"
 #else
 #include "monitor/monitor.h"
@@ -34,6 +35,7 @@
 #include "qemu/sockets.h"
 #include "sysemu/kvm.h"
 #include "exec/semihost.h"
+#include "exec/exec-all.h"
 
 #ifdef CONFIG_USER_ONLY
 #define GDB_ATTACHED "0"
@@ -1752,7 +1754,7 @@ int gdbserver_start(const char *device)
             sigaction(SIGINT, &act, NULL);
         }
 #endif
-        chr = qemu_chr_new("gdb", device, NULL);
+        chr = qemu_chr_new_noreplay("gdb", device, NULL);
         if (!chr)
             return -1;