mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-09-09 00:07:57 -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) {
|
if (reason == EXCP_DEBUG) {
|
||||||
tb_flush(s->env);
|
tb_flush(s->env);
|
||||||
ret = SIGTRAP;
|
ret = SIGTRAP;
|
||||||
}
|
} else if (reason == EXCP_INTERRUPT) {
|
||||||
else
|
ret = SIGINT;
|
||||||
|
} else {
|
||||||
ret = 0;
|
ret = 0;
|
||||||
|
}
|
||||||
snprintf(buf, sizeof(buf), "S%02x", ret);
|
snprintf(buf, sizeof(buf), "S%02x", ret);
|
||||||
put_packet(s, buf);
|
put_packet(s, buf);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue