mirror of https://github.com/xemu-project/xemu.git
MIPS usermode debug exceptions (Dave Denholm).
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2209 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
597a0559fd
commit
d08b2a28e6
|
@ -1362,6 +1362,20 @@ void cpu_loop(CPUMIPSState *env)
|
||||||
case EXCP_INTERRUPT:
|
case EXCP_INTERRUPT:
|
||||||
/* just indicate that signals should be handled asap */
|
/* just indicate that signals should be handled asap */
|
||||||
break;
|
break;
|
||||||
|
case EXCP_DEBUG:
|
||||||
|
{
|
||||||
|
int sig;
|
||||||
|
|
||||||
|
sig = gdb_handlesig (env, TARGET_SIGTRAP);
|
||||||
|
if (sig)
|
||||||
|
{
|
||||||
|
info.si_signo = sig;
|
||||||
|
info.si_errno = 0;
|
||||||
|
info.si_code = TARGET_TRAP_BRKPT;
|
||||||
|
queue_signal(info.si_signo, &info);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
// error:
|
// error:
|
||||||
fprintf(stderr, "qemu: unhandled CPU exception 0x%x - aborting\n",
|
fprintf(stderr, "qemu: unhandled CPU exception 0x%x - aborting\n",
|
||||||
|
|
Loading…
Reference in New Issue