From cfa5138c076e052c032dc8bf7288235b2c3d2566 Mon Sep 17 00:00:00 2001 From: bellard Date: Sun, 23 Apr 2006 18:42:15 +0000 Subject: [PATCH] SIGINT generation (Jason Wessel) --- gdbstub.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gdbstub.c b/gdbstub.c index 5fdf800bd..8157160fd 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); } -- 2.39.5