]> git.proxmox.com Git - mirror_qemu.git/commitdiff
SIGINT generation (Jason Wessel)
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>
Sun, 23 Apr 2006 18:42:15 +0000 (18:42 +0000)
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>
Sun, 23 Apr 2006 18:42:15 +0000 (18:42 +0000)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1836 c046a42c-6fe2-441c-8c8c-71466251a162

gdbstub.c

index 5fdf800bdbc6bbb1e86b4bd018684994b7d9a6ff..8157160fd1eab16ede6b1a72a9cfb60cdd999a42 100644 (file)
--- a/gdbstub.c
+++ b/gdbstub.c
@@ -654,9 +654,11 @@ static void gdb_vm_stopped(void *opaque, int reason)
     if (reason == EXCP_DEBUG) {
        tb_flush(s->env);
         ret = SIGTRAP;
-    }
-    else
+    } else if (reason == EXCP_INTERRUPT) {
+        ret = SIGINT;
+    } else {
         ret = 0;
+    }
     snprintf(buf, sizeof(buf), "S%02x", ret);
     put_packet(s, buf);
 }