aboutsummaryrefslogtreecommitdiff
path: root/gdbstub.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdbstub.c')
-rw-r--r--gdbstub.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdbstub.c b/gdbstub.c
index 9015d625ce..2311a6c017 100644
--- a/gdbstub.c
+++ b/gdbstub.c
@@ -987,7 +987,8 @@ static void gdb_read(void *opaque)
qemu_del_vm_stop_handler(gdb_vm_stopped, s);
qemu_set_fd_handler(s->fd, NULL, NULL, NULL);
qemu_free(s);
- vm_start();
+ if (autostart)
+ vm_start();
} else {
for(i = 0; i < size; i++)
gdb_read_byte(s, buf[i]);