aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2006-04-23 18:42:15 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2006-04-23 18:42:15 +0000
commitbbeb7b5cbd312b4690843499e0061691b8ae1fd8 (patch)
tree04737c642f31e74261b90629adeef24a543af61c
parentf9ebe432db4e0933bdedae021d3b1e23f188be12 (diff)
SIGINT generation (Jason Wessel)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1836 c046a42c-6fe2-441c-8c8c-71466251a162
-rw-r--r--gdbstub.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gdbstub.c b/gdbstub.c
index 5fdf800bdb..8157160fd1 100644
--- 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);
}