mirror of
https://github.com/reactos/reactos.git
synced 2024-07-09 06:05:11 +00:00
- 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:
parent
cc7f0be786
commit
a8ee5682c5
|
@ -213,9 +213,9 @@ KiDispatchException(IN PEXCEPTION_RECORD ExceptionRecord,
|
|||
case STATUS_BREAKPOINT:
|
||||
|
||||
//
|
||||
// Decrement PC by one
|
||||
// We want the instruction right before the int 3
|
||||
//
|
||||
Context.Pc--;
|
||||
Context.Pc -= sizeof(ULONG);
|
||||
break;
|
||||
|
||||
//
|
||||
|
|
Loading…
Reference in a new issue