mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-01 04:13:35 +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:
@@ -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;
|
||||
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user