- ARM instructions are 4 bytes long, not 1, so decrement the PC by four during breakpoints (so the caller gets the address of the previous instruction, just like on x86).

svn path=/trunk/; revision=34485
This commit is contained in:
ReactOS Portable Systems Group 2008-07-14 00:24:33 +00:00
parent cc7f0be786
commit a8ee5682c5

View file

@ -213,9 +213,9 @@ KiDispatchException(IN PEXCEPTION_RECORD ExceptionRecord,
case STATUS_BREAKPOINT: case STATUS_BREAKPOINT:
// //
// Decrement PC by one // We want the instruction right before the int 3
// //
Context.Pc--; Context.Pc -= sizeof(ULONG);
break; break;
// //