GDB monitor: Check for ARM breakpoint IP

Performed in 'slow_trapentry'. Was 'fix_exception_ip.patch'.
This commit is contained in:
Sebastian Sumpf
2013-01-11 17:09:06 +01:00
parent 792e9a0c76
commit 4fe9467192

View File

@@ -316,6 +316,10 @@ extern "C" {
if (handle_copro_fault[copro](opcode, ts))
return;
}
/* check for ARM default GDB breakpoint */
if (!(ts->psr & Proc::Status_thumb) && opcode == 0xe7ffdefe)
ts->pc -= 4;
}
undef_insn: