diff options
author | pbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-01-21 16:47:01 +0000 |
---|---|---|
committer | pbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-01-21 16:47:01 +0000 |
commit | 3c07f8e89488c208391863cc7e26d106d7c0e46e (patch) | |
tree | a990778ec78e8b994eaca35912036546f9272372 /gdbstub.c | |
parent | 72f341ed1ef52607070120a7bbdc350edf52da47 (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.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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]); |