Commit d08b2a28e6d71c561b84878b84e52159a63a27cc

Authored by pbrook
1 parent 597a0559

MIPS usermode debug exceptions (Dave Denholm).


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2209 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 14 additions and 0 deletions
linux-user/main.c
... ... @@ -1362,6 +1362,20 @@ void cpu_loop(CPUMIPSState *env)
1362 1362 case EXCP_INTERRUPT:
1363 1363 /* just indicate that signals should be handled asap */
1364 1364 break;
  1365 + case EXCP_DEBUG:
  1366 + {
  1367 + int sig;
  1368 +
  1369 + sig = gdb_handlesig (env, TARGET_SIGTRAP);
  1370 + if (sig)
  1371 + {
  1372 + info.si_signo = sig;
  1373 + info.si_errno = 0;
  1374 + info.si_code = TARGET_TRAP_BRKPT;
  1375 + queue_signal(info.si_signo, &info);
  1376 + }
  1377 + }
  1378 + break;
1365 1379 default:
1366 1380 // error:
1367 1381 fprintf(stderr, "qemu: unhandled CPU exception 0x%x - aborting\n",
... ...