mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
SIGINT generation (Jason Wessel)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1836 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
f9ebe432db
commit
bbeb7b5cbd
1 changed files with 4 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue