Bug 1123607 - ARM simulator should crash when it hits a breakpoint. r=h4writer

This commit is contained in:
Jan de Mooij 2015-01-20 17:36:41 +01:00
Родитель 99544ec073
Коммит 1c93b0554e
1 изменённых файлов: 8 добавлений и 3 удалений

Просмотреть файл

@ -2717,9 +2717,14 @@ Simulator::decodeType01(SimInstruction *instr)
break;
}
case 7: { // BKPT
fprintf(stderr, "Simulator hit BKPT.\n");
if (getenv("ARM_SIM_DEBUGGER")) {
ArmDebugger dbg(this);
printf("Simulator hit BKPT.\n");
dbg.debug();
} else {
fprintf(stderr, "Use ARM_SIM_DEBUGGER=1 to enter the builtin debugger.\n");
MOZ_CRASH("ARM simulator breakpoint");
}
break;
}
default: