diff --git a/linux-user/main.c b/linux-user/main.c index 38e94d27b5d8412a5ad849ec4219fcc559a827b6..6dd08022f0a8ba6d0e371c3d896ec1c286a25620 100644 --- a/linux-user/main.c +++ b/linux-user/main.c @@ -1362,6 +1362,20 @@ void cpu_loop(CPUMIPSState *env) case EXCP_INTERRUPT: /* just indicate that signals should be handled asap */ 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: // error: fprintf(stderr, "qemu: unhandled CPU exception 0x%x - aborting\n",