mirror of
https://github.com/reactos/reactos.git
synced 2024-10-15 13:45:58 +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:
|
case STATUS_BREAKPOINT:
|
||||||
|
|
||||||
//
|
//
|
||||||
// Decrement PC by one
|
// We want the instruction right before the int 3
|
||||||
//
|
//
|
||||||
Context.Pc--;
|
Context.Pc -= sizeof(ULONG);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
//
|
//
|
||||||
|
|
Loading…
Reference in a new issue