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
@ -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…
Reference in New Issue
Block a user