Skip to content

Commit

Permalink
SIGINT generation (Jason Wessel)
Browse files Browse the repository at this point in the history
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1836 c046a42c-6fe2-441c-8c8c-71466251a162
  • Loading branch information
bellard committed Apr 23, 2006
1 parent f9ebe43 commit bbeb7b5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions gdbstub.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit bbeb7b5

Please sign in to comment.