From a8ee5682c5792824e4bb03ee227ddd1731e7d9fb Mon Sep 17 00:00:00 2001 From: ReactOS Portable Systems Group Date: Mon, 14 Jul 2008 00:24:33 +0000 Subject: [PATCH] - 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 --- reactos/ntoskrnl/ke/arm/exp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reactos/ntoskrnl/ke/arm/exp.c b/reactos/ntoskrnl/ke/arm/exp.c index 4059ab5ee6e..724950d3955 100644 --- a/reactos/ntoskrnl/ke/arm/exp.c +++ b/reactos/ntoskrnl/ke/arm/exp.c @@ -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; //