summaryrefslogtreecommitdiff
path: root/gdbstub.c
diff options
context:
space:
mode:
authorpbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162>2007-01-21 16:47:01 +0000
committerpbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162>2007-01-21 16:47:01 +0000
commit3c07f8e89488c208391863cc7e26d106d7c0e46e (patch)
treea990778ec78e8b994eaca35912036546f9272372 /gdbstub.c
parent72f341ed1ef52607070120a7bbdc350edf52da47 (diff)
Don't resume guest when gdb connection terminates and -S specified.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2343 c046a42c-6fe2-441c-8c8c-71466251a162
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 9015d625c..2311a6c01 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]);