]> git.proxmox.com Git - mirror_qemu.git/blobdiff - gdbstub.c
SIGINT generation (Jason Wessel)
[mirror_qemu.git] / 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);
 }